Click or drag to resize
RagdollPart Methods

The RagdollPart type exposes the following members.

Methods
  NameDescription
Protected methodAwake
Store Joint's bindpose and frame.
Public methodCacheChild
Adds the specified RagdollPart to the list of cached children. It will only be returned as an actual child if its ParentBody property is this PhysicalBody.
(Inherited from PhysicalBody.)
Public methodCacheCurrentAngularLimits
Caches the current angular limits. The cached value will be used as the extent of the angular limits when they are blended in and out. This method is automatically called when this instance is deserialized.
Public methodCacheImpactTransmissionPercentages
Caches the impact transmission percentages in the hierarchy. You should only need to call this method manually if you change the topology of a ragdoll hierarchy by e.g., changing ParentBody or if parts can translate far away from one another.
Protected methodFixedUpdate
Recovery from impact strength reduction as needed.
Public methodGetAngularDampingProfile
Gets the profile of damping the Joint should use at different normalized strength values when achieving its target angular position on all axes, if applicable.
Public methodGetAngularPositionForceProfile
Gets the profile of force the Joint should use at different normalized strength values when achieving its target angular position on all axes, if applicable.
Public methodGetAngularVelocityForceProfile
Gets the profile of force the Joint should use at different normalized strength values when achieving its target angular velocity on all axes, if applicable.
Public methodGetChildParts
Gets the child parts. These parts will include only RagdollPart objects registered with CacheChild(RagdollPart) and whose ParentBody is this PhysicalBody.
(Inherited from PhysicalBody.)
Public methodGetImpactLayerStrengths
Gets the environment layers that will cause strength reduction upon impact, as well as the factor by which collision impulses will be multiplied when calculating strength reduction.
Public methodGetImpactRecoverySpeedProfile
Gets the impact recovery speed profile.
Public methodGetImpactStrengthReductionProfile
Gets the impact strength reduction profile.
Public methodGetImpactTransmissionProfile
Gets the impact transmission profile.
Public methodGetLinearDampingProfile
Gets the profile of damping the Joint should use at different normalized strength values when achieving its target linear position on all axes, if applicable.
Public methodGetLinearPositionForceProfile
Gets the profile of force the Joint should use at different normalized strength values when achieving its target linear position on all axes, if applicable.
Public methodGetLinearVelocityForceProfile
Gets the profile of force the Joint should use at different normalized strength values when achieving its target linear velocity on all axes, if applicable.
Public methodGetPhysicalHierarchy
Gets the physical hierarchy. These parts will include this PhysicalBody as well as RagdollPart objects registered with CacheChild(RagdollPart) whose ParentBody is this PhysicalBody, as well as their hierarchies.
(Inherited from PhysicalBody.)
Public methodGetPinningForceProfile
Gets the profile of the ratio of pinning-force-to-joint-angular-limits to apply at different normalized strength values to try to maintain target position.
Protected methodOnCollisionEnter
Raises the collision enter event.
(Overrides FlexibleColliderOnCollisionEnter(Collision).)
Protected methodOnCollisionExit
Raises the collision exit event.
(Inherited from FlexibleCollider.)
Protected methodOnCollisionStay
Raises the collision stay event.
(Overrides FlexibleColliderOnCollisionStay(Collision).)
Protected methodOnDisable
Raises the disable event.
(Inherited from PhysicalBody.)
Protected methodOnEnable
Raises the enable event.
(Overrides PhysicalBodyOnEnable.)
Protected methodOnJointBreak
Set the HasJointBroken flag.
Public methodOnModifySymmetricalProperty
Raises the modify symmetrical property event. This method is called when a property is set that needs to be pushed to the corresponding FlexibleCollider. You can invoke it manually if you need to push settings that are not managed on this object directly, such as Joint limits.
(Inherited from FlexibleCollider.)
Protected methodOnSynchronizeSymmetricalProperties
Raises the synchronize symmetrical properties event.
(Overrides PhysicalBodyOnSynchronizeSymmetricalProperties.)
Public methodRecoverFromImpactImmediately
Immediately resets the impact recovery timer.
Protected methodReduceStrength
Tries to reduce the strength of this part using the specified impulse.
Protected methodReset
Reset this instance.
Public methodResetBindpose
Resets Joint's bindpose in the current configuration.
Public methodSetAngularDampingProfile
Sets the profile of damping the Joint should use at different normalized strength values when achieving its target angular position on all axes, if applicable.
Public methodSetAngularPositionForceProfile
Sets the profile of force the Joint should use at different normalized strength values when achieving its target angular position on all axes, if applicable.
Public methodSetAngularVelocityForceProfile
Sets the profile of force the Joint should use at different normalized strength values when achieving its target angular velocity on all axes, if applicable.
Public methodSetImpactLayerStrengths
Sets the environment layers that will cause strength reduction upon impact, as well as the factor by which collision impulses will be multiplied when calculating strength reduction.
Public methodSetImpactRecoverySpeedProfile
Sets the impact recovery speed profile.
Public methodSetImpactStrengthReductionProfile
Sets the impact strength reduction profile.
Public methodSetImpactTransmissionProfile
Sets the impact transmission profile.
Public methodSetJointTargetRotation
Sets the ConfigurableJoint.targetRotation property by transforming the supplied local rotation.
Public methodSetLinearDampingProfile
Sets the profile of damping the Joint should use at different normalized strength values when achieving its target linear position on all axes, if applicable.
Public methodSetLinearPositionForceProfile
Sets the profile of force the Joint should use at different normalized strength values when achieving its target linear position on all axes, if applicable.
Public methodSetLinearVelocityForceProfile
Sets the profile of force the Joint should use at different normalized strength values when achieving its target linear velocity on all axes, if applicable.
Public methodSetPinningForceProfile
Sets the profile of the ratio of pinning-force-to-joint-angular-limits to apply at different normalized strength values to try to maintain target position.
Public methodSetStrength
Sets the strength of this part.
Protected methodStart
Cache the angular limits on Joint.
(Overrides PhysicalBodyStart.)
Public methodTryAddImpactAtPoint
Tries to add an impact at the specified point that will cause this part and neighboring ones to reduce their strength.
Protected methodTryImpactCollision
Tries to reduce the strength of this part and neighboring ones using the specified collision data.
Public methodUseExplicitCenterOfMassWhenLoaded

Makes the Rigidbody.centerOfMass property on Rigidbody use the explicit value serialized in the backing field for CenterOfMass when this objet is first loaded. Neither it nor Rigidbody.inertiaTensor will be automatically/continuously calculated anymore.

This method only exists for enabling explicit center of mass before this object is loaded (e.g., in the editor). Setting CenterOfMass at run-time will cause the explicitly specified value to be used whether or not this method has been called.

(Inherited from PhysicalBody.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetPrefabName
Gets the name of the prefab associated with the supplied instance.
(Defined by ObjectX.)
Public Extension MethodOpenReferencePage
Opens a reference web page generated for the specified object.
(Defined by ObjectX.)
Top
See Also