Click or drag to resize
PhysicalBody Methods

The PhysicalBody type exposes the following members.

Methods
  NameDescription
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.
Public methodGetChildParts
Gets the child parts. These parts will include only RagdollPart objects registered with CacheChild(RagdollPart) and whose ParentBody is this PhysicalBody.
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.
Protected methodOnCollisionEnter
Raises the collision enter event.
(Inherited from FlexibleCollider.)
Protected methodOnCollisionExit
Raises the collision exit event.
(Inherited from FlexibleCollider.)
Protected methodOnCollisionStay
Raises the collision stay event.
(Inherited from FlexibleCollider.)
Protected methodOnDisable
Raises the disable event.
(Overrides FlexibleColliderOnDisable.)
Protected methodOnEnable
Raises the enable event.
(Overrides FlexibleColliderOnEnable.)
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 FlexibleColliderOnSynchronizeSymmetricalProperties.)
Protected methodStart
Apply explicit center of mass if indicated.
(Overrides FlexibleColliderStart.)
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.

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