Click or drag to resize
PhysicalBody Class
Inheritance Hierarchy

Namespace: Candlelight.Physics
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public class PhysicalBody : FlexibleCollider

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
Properties
  NameDescription
Public propertyBlendTime
Gets or sets the number of seconds this part takes to blend out of non-kinematic motion. This value is just a convenience for other scripts that might want to use it.
Public propertyCenter
Gets or sets the center of the Collider in this object's space.
(Inherited from FlexibleCollider.)
Public propertyCenterOfMass

Gets or sets the center of mass on Rigidbody.

As with Rigidbody.centerOfMass, setting a value for this property at run-time will set IsCenterOfMassExplicit to .

Public propertyChildCentroid
Gets the average position of all child bodies in this body's space.
Public propertyCollider
Gets the collider.
(Inherited from FlexibleCollider.)
Public propertyCorrespondingObject

Gets the corresponding FlexibleCollider across a plane of symmetry.

It will be the FlexibleCollider component on the CorrespondingTransform of the SymmetryMapper assigned to this instance.

(Inherited from FlexibleCollider.)
Public propertyIsCenterOfMassExplicit

Gets a value indicating whether this object has already explicitly applied its CenterOfMass property to Rigidbody or should when it is loaded. If it returns , then Unity is assumed to be automatically/continuously calculating Rigidbody.centerOfMass and Rigidbody.inertiaTensor.

Public propertyLocalRotation
Gets or sets the Collider's local rotation in this object's space.
(Inherited from FlexibleCollider.)
Public propertyOnCollisionEnterEvent
Gets the on collision enter event.
(Inherited from FlexibleCollider.)
Public propertyOnCollisionExitEvent
Gets the on collision exit event.
(Inherited from FlexibleCollider.)
Public propertyOnCollisionStayEvent
Gets the on collision stay event.
(Inherited from FlexibleCollider.)
Public propertyReciprocalBlendTime
Gets the reciprocal of BlendTime.
Public propertyRigidbody
Gets the Rigidbody on this object.
Public propertyRunTimeSync
Gets or sets a value describing whether or not this FlexibleCollider should continue to sync with its corresponding part at run-time.
(Inherited from FlexibleCollider.)
Public propertyShape
Gets or sets the shape of the Collider.
(Inherited from FlexibleCollider.)
Public propertySize
Gets or sets the size of the Collider.
(Inherited from FlexibleCollider.)
Public propertySymmetryMapper

Gets or sets a SymmetricalTransform component on this GameObject, which allows symmetrical property edits.

If it is not and its CorrespondingTransform is assigned and has a FlexibleCollider component of this object's type, then all changes made to properties on this object will be reflected across the plane of symmetry.

(Inherited from FlexibleCollider.)
Public propertyTransform
Gets this object's Transform.
(Inherited from FlexibleCollider.)
Top
See Also