Click or drag to resize
PhysicalBodyCenterOfMass Property

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 .

Namespace: Candlelight.Physics
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public virtual Vector3 CenterOfMass { get; set; }

Property Value

Type: Vector3
The center of mass on Rigidbody.
Remarks
This property wraps Rigidbody.centerOfMass, and so accounts for the body's position and orientation, but not its scale.
See Also