{"name":"getCenterOfMass","operator":null,"title":"getCenterOfMass","type":"command","url":"https://community.bistudio.com/wiki/getCenterOfMass","revid":377796,"updated":"2026-01-03T03:53:42Z","groups":["PhysX"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.12"}],"since":{"game":"arma3","name":"Arma 3","version":"1.12"},"arma3_since":"1.12","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns center of mass of an object.","syntaxes":[{"syntax":"getCenterOfMass object","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":"PhysX object","types":["Object"],"since":null,"text":"object: Object - PhysX object"}],"returns":{"type":"PositionRelative","types":["PositionRelative"],"description":"relative to the model centre","text":"PositionRelative - relative to the model centre"},"form":"unary","operator":null,"left":null,"right":{"text":"object","types":["Object"]}}],"examples":[{"text":"```sqf\n_com = getCenterOfMass _myCar;\n```","code":["_com = getCenterOfMass _myCar;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getMass","setCenterOfMass","setMass","addTorque","addForce"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: PhysX","Introduced with Arma 3 version 1.12","Scripting Commands"]}