Garry's Mod Wiki

PhysObj:GetMassCenter

  Vector PhysObj:GetMassCenter()

Description

Returns the center of mass of the physics object as a local vector.

Returns

1 Vector
The center of mass of the physics object.