Skip to content

llGetCenterOfMass

function ll.GetCenterOfMass(): vector

Returns the prim's centre of mass (unless called from the root prim, where it returns the object's centre of mass).

Add example usage here showing SLua/Luau syntax with ll.GetCenterOfMass().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.