Class HingeConstraint

All Implemented Interfaces:
Deletable, JoltNative

public final class HingeConstraint extends TwoBodyConstraint
HingeConstraint relies on preview features of the Java platform:
Programs can only use HingeConstraint when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
  • Method Details

    • at

      public static HingeConstraint at(MemoryAddressPREVIEW addr)
    • getCurrentAngle

      public float getCurrentAngle()
    • setMaxFrictionTorque

      public void setMaxFrictionTorque(float frictionTorque)
    • getMaxFrictionTorque

      public float getMaxFrictionTorque()
    • getMotorSettings

      public MotorSettings getMotorSettings(MemorySessionPREVIEW alloc)
    • setMotorState

      public void setMotorState(MotorState state)
    • getMotorState

      public MotorState getMotorState()
    • setTargetAngularVelocity

      public void setTargetAngularVelocity(float angularVelocity)
    • getTargetAngularVelocity

      public float getTargetAngularVelocity()
    • setTargetAngle

      public void setTargetAngle(float angle)
    • getTargetAngle

      public float getTargetAngle()
    • setLimits

      public void setLimits(float limitsMin, float limitsMax)
    • getLimitsMin

      public float getLimitsMin()
    • getLimitsMax

      public float getLimitsMax()
    • hasLimits

      public boolean hasLimits()
    • getTotalLambdaPosition

      public void getTotalLambdaPosition(FVec3 out)
    • getTotalLambdaRotation

      public float[] getTotalLambdaRotation()
    • getTotalLambdaRotationLimits

      public float getTotalLambdaRotationLimits()
    • getTotalLambdaMotor

      public float getTotalLambdaMotor()