java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.Constraint
com.github.stephengold.joltjni.TwoBodyConstraint
com.github.stephengold.joltjni.ConeConstraint
- All Implemented Interfaces:
- ConstConstraint,- ConstJoltPhysicsObject,- ConstTwoBodyConstraint,- RefTarget,- AutoCloseable,- Comparable<JoltPhysicsObject>
A 
TwoBodyConstraint that limits the swing of the twist axes to a cone
 and disables translation.- 
Method SummaryModifier and TypeMethodDescriptionfloatReturn the cosine of half the cone angle.voidsetHalfConeAngle(float halfAngle) Alter the cone angle.Methods inherited from class com.github.stephengold.joltjni.TwoBodyConstraintgetBody1, getBody1PivotLocation, getBody2, getBody2PivotLocation, getConstraintToBody1Matrix, getConstraintToBody2Matrix, toRefMethods inherited from class com.github.stephengold.joltjni.ConstraintgetConstraintPriority, getConstraintSettings, getEnabled, getNumPositionStepsOverride, getNumVelocityStepsOverride, getRefCount, getSubType, getType, isActive, notifyShapeChanged, restoreState, saveState, setConstraintPriority, setEmbedded, setEnabled, setNumPositionStepsOverride, setNumVelocityStepsOverride, setVirtualAddressAsCoOwnerMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObjectclose, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.ComparablecompareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstConstraintgetConstraintPriority, getConstraintSettings, getEnabled, getNumPositionStepsOverride, getNumVelocityStepsOverride, getSubType, getType, isActive, saveStateMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObjectclose, hasAssignedNativeObject, ownsNativeObject, targetVa
- 
Method Details- 
getCosHalfConeAnglepublic float getCosHalfConeAngle()Return the cosine of half the cone angle. The constraint is unaffected.- Returns:
- the cosine ratio
 
- 
setHalfConeAnglepublic void setHalfConeAngle(float halfAngle) Alter the cone angle.- Parameters:
- halfAngle- the desired half angle (in radians)
 
 
-