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<ConstJoltPhysicsObject>
- Direct Known Subclasses:
ConeConstraintSettings,DistanceConstraintSettings,FixedConstraintSettings,GearConstraintSettings,HingeConstraintSettings,PointConstraintSettings,SixDofConstraintSettings,SliderConstraintSettings
Settings used to construct a
TwoBodyConstraint.-
Method Summary
Modifier and TypeMethodDescriptionCreate a constraint using the settings.Methods inherited from class com.github.stephengold.joltjni.ConstraintSettings
getConstraintPriority, getEnabled, getNumPositionStepsOverride, getNumVelocityStepsOverride, getRefCount, setConstraintPriority, setEmbedded, setEnabled, setNumPositionStepsOverride, setNumVelocityStepsOverride, toRefMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
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
-