java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.BodyCreationSettings
com.github.stephengold.joltjni.Part
- All Implemented Interfaces:
ConstBodyCreationSettings
,ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Settings used to generate a rigid body in a
Ragdoll
. (native type:
RagdollSettings::Part
)-
Method Summary
Modifier and TypeMethodDescriptiongetToParent
(EConstraintSubType subType) Return the settings to create the joint to the part's parent.void
setToParent
(ConstraintSettings settings) Alter the settings to create the joint to the part's parent.Methods inherited from class com.github.stephengold.joltjni.BodyCreationSettings
getAllowDynamicOrKinematic, getAllowedDofs, getAllowSleeping, getAngularDamping, getAngularVelocity, getApplyGyroscopicForce, getCollisionGroup, getEnhancedInternalEdgeRemoval, getFriction, getGravityFactor, getIsSensor, getLinearDamping, getLinearVelocity, getMassProperties, getMassPropertiesOverride, getMaxAngularVelocity, getMaxLinearVelocity, getMotionQuality, getMotionType, getObjectLayer, getOverrideMassProperties, getPosition, getRestitution, getRotation, getShape, hasMassProperties, setAllowDynamicOrKinematic, setAllowedDofs, setAllowSleeping, setAngularDamping, setAngularVelocity, setApplyGyroscopicForce, setCollisionGroup, setEnhancedInternalEdgeRemoval, setFriction, setGravityFactor, setIsSensor, setLinearDamping, setLinearVelocity, setMassPropertiesOverride, setMaxAngularVelocity, setMaxLinearVelocity, setMotionQuality, setMotionType, setObjectLayer, setOverrideMassProperties, setPosition, setPosition, setRestitution, setRotation, setShape, setShapeSettings
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
-
getToParent
Return the settings to create the joint to the part's parent. The part is unaffected. (native attribute: mToParent)- Parameters:
subType
- the expected type of constraint (not null)- Returns:
- a new JVM with the pre-existing native object assigned
-
setToParent
Alter the settings to create the joint to the part's parent. (native attribute: mToParent)- Parameters:
settings
- the desired settings (not null)
-