Class CollideShapeSettings

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class CollideShapeSettings extends CollideSettingsBase
Configurable options for a collide-shape query.
  • Constructor Details

    • CollideShapeSettings

      public CollideShapeSettings()
      Instantiate default settings.
  • Method Details

    • getBackFaceMode

      public EBackFaceMode getBackFaceMode()
      Return the treatment of back-facing triangles. The settings are unaffected. (native attribute: mBackFaceMode)
      Returns:
      the enum value (not null)
    • getMaxSeparationDistance

      public float getMaxSeparationDistance()
      Return the maximum separation for which contacts will be reported. The settings are unaffected. (native attribute: mMaxSeparationDistance)
      Returns:
      the separation limit (in meters)
    • setBackFaceMode

      public void setBackFaceMode(EBackFaceMode mode)
      Alter the treatment of back-facing triangles. (native attribute: mBackFaceMode)
      Parameters:
      mode - the desired mode (not null, default=IgnoreBackFaces)
    • setMaxSeparationDistance

      public void setMaxSeparationDistance(float distance)
      Alter the maximum separation for which contacts will be reported. (native attribute: mMaxSeparationDistance)
      Parameters:
      distance - the desired separation limit (in meters, default=0)