Package com.github.stephengold.joltjni
Class TwoBodyConstraintSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.ConstraintSettings
com.github.stephengold.joltjni.TwoBodyConstraintSettings
- All Implemented Interfaces:
ConstConstraintSettings
,ConstJoltPhysicsObject
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
ConeConstraintSettings
,DistanceConstraintSettings
,FixedConstraintSettings
,GearConstraintSettings
,HingeConstraintSettings
,PathConstraintSettings
,PointConstraintSettings
,PulleyConstraintSettings
,RackAndPinionConstraintSettings
,SixDofConstraintSettings
,SliderConstraintSettings
,SwingTwistConstraintSettings
Settings used to construct a
TwoBodyConstraint
.-
Method Summary
Modifier and TypeMethodDescriptionCreate a constraint using the settings.toRef()
Create a counted reference to the nativeConstraintSettings
.Methods inherited from class com.github.stephengold.joltjni.ConstraintSettings
getConstraintPriority, getControllerType, getDrawConstraintSize, getEnabled, getNumPositionStepsOverride, getNumVelocityStepsOverride, getRefCount, setConstraintPriority, setDrawConstraintSize, setEmbedded, setEnabled, setNumPositionStepsOverride, setNumVelocityStepsOverride
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
create
Create a constraint using the settings. The settings are unaffected.- Parameters:
body1
- the desired first body (not null)body2
- the desired 2nd body (not null)- Returns:
- a new constraint
-
toRef
Create a counted reference to the nativeConstraintSettings
.- Specified by:
toRef
in interfaceRefTarget
- Overrides:
toRef
in classConstraintSettings
- Returns:
- a new JVM object with a new native object assigned
-