![]() | PhysicalBody Class |
Namespace: Candlelight.Physics
public class PhysicalBody : FlexibleCollider
The PhysicalBody type exposes the following members.
Name | Description | |
---|---|---|
![]() | CacheChild |
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.
|
![]() | GetChildParts |
Gets the child parts. These parts will include only RagdollPart objects registered
with CacheChild(RagdollPart) and whose
ParentBody is this PhysicalBody.
|
![]() | GetPhysicalHierarchy |
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.
|
![]() | OnCollisionEnter |
Raises the collision enter event.
(Inherited from FlexibleCollider.) |
![]() | OnCollisionExit |
Raises the collision exit event.
(Inherited from FlexibleCollider.) |
![]() | OnCollisionStay |
Raises the collision stay event.
(Inherited from FlexibleCollider.) |
![]() | OnDisable |
Raises the disable event.
(Overrides FlexibleColliderOnDisable.) |
![]() | OnEnable |
Raises the enable event.
(Overrides FlexibleColliderOnEnable.) |
![]() | OnModifySymmetricalProperty |
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.) |
![]() | OnSynchronizeSymmetricalProperties |
Raises the synchronize symmetrical properties event.
(Overrides FlexibleColliderOnSynchronizeSymmetricalProperties.) |
![]() | Start |
Apply explicit center of mass if indicated.
(Overrides FlexibleColliderStart.) |
![]() | UseExplicitCenterOfMassWhenLoaded | 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. |
Name | Description | |
---|---|---|
![]() | GetPrefabName |
Gets the name of the prefab associated with the supplied instance.
(Defined by ObjectX.) |
![]() | OpenReferencePage |
Opens a reference web page generated for the specified object.
(Defined by ObjectX.) |
Name | Description | |
---|---|---|
![]() | BlendTime |
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.
|
![]() | Center |
Gets or sets the center of the Collider in this object's space.
(Inherited from FlexibleCollider.) |
![]() | CenterOfMass | 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 . |
![]() | ChildCentroid |
Gets the average position of all child bodies in this body's space.
|
![]() | Collider |
Gets the collider.
(Inherited from FlexibleCollider.) |
![]() | CorrespondingObject | 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. |
![]() | IsCenterOfMassExplicit | 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. |
![]() | LocalRotation |
Gets or sets the Collider's local rotation in this object's space.
(Inherited from FlexibleCollider.) |
![]() | OnCollisionEnterEvent |
Gets the on collision enter event.
(Inherited from FlexibleCollider.) |
![]() | OnCollisionExitEvent |
Gets the on collision exit event.
(Inherited from FlexibleCollider.) |
![]() | OnCollisionStayEvent |
Gets the on collision stay event.
(Inherited from FlexibleCollider.) |
![]() | ReciprocalBlendTime |
Gets the reciprocal of BlendTime.
|
![]() | Rigidbody |
Gets the Rigidbody on this object.
|
![]() | RunTimeSync |
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.) |
![]() | Shape |
Gets or sets the shape of the Collider.
(Inherited from FlexibleCollider.) |
![]() | Size |
Gets or sets the size of the Collider.
(Inherited from FlexibleCollider.) |
![]() | SymmetryMapper | 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. |
![]() | Transform |
Gets this object's Transform.
(Inherited from FlexibleCollider.) |