Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


worldCenterOfMass

Get the center of mass position of the body in world space. This can be accessed as a union of PhysicsBody.mass, PhysicsBody.rotationalInertia and PhysicsBody.localCenterOfMass using PhysicsBody.massConfiguration.
Read time 1 minuteLast updated 13 days ago

Definition

public Vector2 worldCenterOfMass { get; }