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
)-
Constructor Summary
Constructors -
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
convertShapeSettings, getAllowDynamicOrKinematic, getAllowedDofs, getAllowSleeping, getAngularDamping, getAngularVelocity, getApplyGyroscopicForce, getCollideKinematicVsNonDynamic, getCollisionGroup, getEnhancedInternalEdgeRemoval, getFriction, getGravityFactor, getInertiaMultiplier, getIsSensor, getLinearDamping, getLinearVelocity, getMassProperties, getMassPropertiesOverride, getMaxAngularVelocity, getMaxLinearVelocity, getMotionQuality, getMotionType, getNumPositionStepsOverride, getNumPositionStepsOverride, getNumVelocityStepsOverride, getNumVelocityStepsOverride, getObjectLayer, getOverrideMassProperties, getPosition, getRestitution, getRotation, getShape, getShapeSettings, getUseManifoldReduction, getUserData, hasMassProperties, restoreBinaryState, saveBinaryState, saveWithChildren, setAllowDynamicOrKinematic, setAllowedDofs, setAllowSleeping, setAngularDamping, setAngularVelocity, setApplyGyroscopicForce, setCollideKinematicVsNonDynamic, setCollisionGroup, setEnhancedInternalEdgeRemoval, setFriction, setGravityFactor, setInertiaMultiplier, setIsSensor, setLinearDamping, setLinearVelocity, setMassPropertiesOverride, setMaxAngularVelocity, setMaxLinearVelocity, setMotionQuality, setMotionType, setObjectLayer, setOverrideMassProperties, setPosition, setPosition, setRestitution, setRotation, setShape, setShapeSettings, setUseManifoldReduction, setUserData, sRestoreWithChildren
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
-
Constructor Details
-
Part
Instantiate a copy of the specified settings.- Parameters:
original
- the settings to copy (notnull
, unaffected)
-
-
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)
-