Package jolt.physics.constraint
Class SliderConstraint
java.lang.Object
jolt.BaseJoltNative
jolt.AddressedJoltNative
jolt.DeletableJoltNative
jolt.physics.constraint.Constraint
jolt.physics.constraint.TwoBodyConstraint
jolt.physics.constraint.SliderConstraint
- All Implemented Interfaces:
Deletable,JoltNative
SliderConstraint relies on preview features of the Java platform:
SliderConstraintrefers 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 SliderConstraintat(MemoryAddressPREVIEW addr) floatfloatfloatfloatfloatfloatfloatfloatfloatfloat[]floatvoidbooleanvoidsetDamping(float damping) voidsetFrequency(float frequency) voidsetLimits(float limitsMin, float limitsMax) voidsetMaxFrictionForce(float frictionForce) voidsetMotorState(MotorState state) voidsetTargetPosition(float position) voidsetTargetVelocity(float velocity) 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
-
getCurrentPosition
public float getCurrentPosition() -
setMaxFrictionForce
public void setMaxFrictionForce(float frictionForce) -
getMaxFrictionForce
public float getMaxFrictionForce() -
getMotorSettings
-
setMotorState
-
getMotorState
-
setTargetVelocity
public void setTargetVelocity(float velocity) -
getTargetVelocity
public float getTargetVelocity() -
setTargetPosition
public void setTargetPosition(float position) -
getTargetPosition
public float getTargetPosition() -
setLimits
public void setLimits(float limitsMin, float limitsMax) -
getLimitsMin
public float getLimitsMin() -
getLimitsMax
public float getLimitsMax() -
hasLimits
public boolean hasLimits() -
setFrequency
public void setFrequency(float frequency) -
getFrequency
public float getFrequency() -
setDamping
public void setDamping(float damping) -
getDamping
public float getDamping() -
getTotalLambdaPosition
public float[] getTotalLambdaPosition() -
getTotalLambdaPositionLimits
public float getTotalLambdaPositionLimits() -
getTotalLambdaRotation
-
getTotalLambdaMotor
public float getTotalLambdaMotor()
-
SliderConstraintwhen preview features are enabled.