Package jolt.physics.constraint
Class HingeConstraint
java.lang.Object
jolt.BaseJoltNative
jolt.AddressedJoltNative
jolt.DeletableJoltNative
jolt.physics.constraint.Constraint
jolt.physics.constraint.TwoBodyConstraint
jolt.physics.constraint.HingeConstraint
- All Implemented Interfaces:
Deletable,JoltNative
HingeConstraint relies on preview features of the Java platform:
HingeConstraintrefers to one or more preview APIs:MemoryAddress,MemorySession.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Field Summary
Fields inherited from class jolt.DeletableJoltNative
deletedFields inherited from class jolt.AddressedJoltNative
handle -
Method Summary
Modifier and TypeMethodDescriptionstatic HingeConstraintat(MemoryAddressPREVIEW addr) floatfloatfloatfloatfloatfloatfloatvoidfloat[]floatbooleanvoidsetLimits(float limitsMin, float limitsMax) voidsetMaxFrictionTorque(float frictionTorque) voidsetMotorState(MotorState state) voidsetTargetAngle(float angle) voidsetTargetAngularVelocity(float angularVelocity) Methods inherited from class jolt.physics.constraint.TwoBodyConstraint
getBody1, getBody2, getConstraintToBody1Matrix, getConstraintToBody2MatrixMethods inherited from class jolt.physics.constraint.Constraint
deleteInternal, getEnabled, getNumPositionStepsOverride, getNumVelocityStepsOverride, getSubType, getType, setEnabled, setNumPositionStepsOverride, setNumVelocityStepsOverrideMethods inherited from class jolt.DeletableJoltNative
delete, isDeletedMethods inherited from class jolt.AddressedJoltNative
addressMethods inherited from class jolt.BaseJoltNative
equals, hashCode
-
Method Details
-
at
-
getCurrentAngle
public float getCurrentAngle() -
setMaxFrictionTorque
public void setMaxFrictionTorque(float frictionTorque) -
getMaxFrictionTorque
public float getMaxFrictionTorque() -
getMotorSettings
-
setMotorState
-
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
-
getTotalLambdaRotation
public float[] getTotalLambdaRotation() -
getTotalLambdaRotationLimits
public float getTotalLambdaRotationLimits() -
getTotalLambdaMotor
public float getTotalLambdaMotor()
-
HingeConstraintwhen preview features are enabled.