Class ShapeSettings

All Implemented Interfaces:
ConstJoltPhysicsObject, ConstShapeSettings, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>
Direct Known Subclasses:
CompoundShapeSettings, ConvexShapeSettings, DecoratedShapeSettings, EmptyShapeSettings, HeightFieldShapeSettings, MeshShapeSettings, PlaneShapeSettings

public abstract class ShapeSettings extends SerializableObject implements ConstShapeSettings, RefTarget
Settings used to construct a Shape.
  • Method Details

    • clearCachedResult

      public void clearCachedResult()
      Invoke this method after altering the settings but before generating any new shapes.
    • create

      public ShapeResult create()
      Generate a ShapeResult from these settings.
      Specified by:
      create in interface ConstShapeSettings
      Returns:
      a new JVM object with a new native object assigned
    • toRefC

      public ShapeSettingsRefC toRefC()
      Create a counted reference to the native ShapeSettings.
      Specified by:
      toRefC in interface ConstShapeSettings
      Returns:
      a new JVM object with a new native object assigned
    • getRefCount

      public int getRefCount()
      Count the active references to the native ShapeSettings. The settings are unaffected.
      Specified by:
      getRefCount in interface RefTarget
      Returns:
      the count (≥0)
    • setEmbedded

      public void setEmbedded()
      Mark the native ShapeSettings as embedded.
      Specified by:
      setEmbedded in interface RefTarget
    • toRef

      public ShapeSettingsRef toRef()
      Create a counted reference to the native ShapeSettings.
      Specified by:
      toRef in interface RefTarget
      Returns:
      a new JVM object with a new native object assigned