Package com.github.stephengold.joltjni
Class TwoBodyConstraintSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.ConstraintSettings
com.github.stephengold.joltjni.TwoBodyConstraintSettings
- All Implemented Interfaces:
ConstConstraintSettings
,ConstJoltPhysicsObject
,ConstSerializableObject
,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, saveBinaryState, setConstraintPriority, setDrawConstraintSize, setEmbedded, setEnabled, setNumPositionStepsOverride, setNumVelocityStepsOverride, sRestoreFromBinaryState
Methods inherited from class com.github.stephengold.joltjni.SerializableObject
getRtti
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, 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
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
-
Method Details
-
create
Create a constraint using the settings. The settings are unaffected.- Parameters:
rigidBody1
- the desired first body (not null, not soft)rigidBody2
- the desired 2nd body (not null, not soft)- Returns:
- the new constraint, ready to be added to a
PhysicsSystem
-
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
-