localCenterOfMass
The center of mass position of the body in local space. This can be accessed as a union of _mass, _rotationalInertia and _localCenterOfMass using _massConfiguration.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public Vector2 localCenterOfMass { get; set; }