Class ExtendedUpdateSettings

java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.ExtendedUpdateSettings
All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class ExtendedUpdateSettings extends JoltPhysicsObject
Settings for extended update of a virtual character. (native type: CharacterVirtual::ExtendedUpdateSettings)
  • Constructor Details

    • ExtendedUpdateSettings

      public ExtendedUpdateSettings()
      Instantiate default settings.
  • Method Details

    • getStickToFloorStepDown

      public Vec3 getStickToFloorStepDown()
      Copy the StickToFloor inStepDown parameter. The settings are unaffected. (native attribute: mStickToFloorStepDown)
      Returns:
      a new offset vector
    • getWalkStairsCosAngleForwardContact

      public float getWalkStairsCosAngleForwardContact()
      Return the cosine of the maximum angle between the ground normal and the horizontal for adjusting the step-forward test. The settings are unaffected. (native attribute: mWalkStairsCosAngleForwardContact)
      Returns:
      the cosine of the maximum angle
    • getWalkStairsMinStepForward

      public float getWalkStairsMinStepForward()
      Return the StickToFloor inStepForward parameter. The settings are unaffected. (native attribute: mWalkStairsMinStepForward)
      Returns:
      the distance
    • getWalkStairsStepForwardTest

      public float getWalkStairsStepForwardTest()
      Return the StickToFloor inStepForwardTest parameter. The settings are unaffected. (native attribute: mWalkStairsStepForwardTest)
      Returns:
      the distance
    • getWalkStairsStepUp

      public Vec3 getWalkStairsStepUp()
      Copy the StickToFloor inStepUp parameter. The settings are unaffected. (native attribute: mWalkStairsStepUp)
      Returns:
      a new offset vector
    • setStickToFloorStepDown

      public void setStickToFloorStepDown(Vec3Arg offset)
      Alter the StickToFloor inStepDown parameter. (native attribute: mStickToFloorStepDown)
      Parameters:
      offset - the desired offset (not null, unaffected, zero=off, default=(0, -0.5, 0))
    • setWalkStairsCosAngleForwardContact

      public void setWalkStairsCosAngleForwardContact(float cosine)
      Alter the cosine of the maximum angle between the ground normal and the horizontal for adjusting the step-forward test. (native attribute: mWalkStairsCosAngleForwardContact)
      Parameters:
      cosine - the cosine of the maximum angle (default=cos(75 degrees))
    • setWalkStairsMinStepForward

      public void setWalkStairsMinStepForward(float distance)
      Alter the StickToFloor inStepForward parameter. (native attribute: mWalkStairsMinStepForward)
      Parameters:
      distance - the desired distance (default=0.02f)
    • setWalkStairsStepForwardTest

      public void setWalkStairsStepForwardTest(float distance)
      Alter the StickToFloor inStepForwardTest parameter. (native attribute: mWalkStairsStepForwardTest)
      Parameters:
      distance - the desired distance (default=0.15f)
    • setWalkStairsStepUp

      public void setWalkStairsStepUp(Vec3Arg offset)
      Alter the StickToFloor inStepUp parameter. (native attribute: mWalkStairsStepUp)
      Parameters:
      offset - the desired offset (not null, unaffected, zero=off, default=(0, 0.4, 0))