Body.centerOfMassPosition

Returns the center of mass world position of a body.

Kind: Member

Environments: Game

Game

Open the full Game reference

Get

Returns the center of mass world position of a body.

Returns:

Type Description
Vec3 The body's center of mass world position.