Click or drag to resize
PhysicalBody Properties

The PhysicalBody type exposes the following members.

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