{"name":"setCenterOfMass","title":"setCenterOfMass","type":"command","url":"https://community.bistudio.com/wiki/setCenterOfMass","revid":379465,"updated":"2026-10-31T00:10:08Z","groups":["PhysX"],"status":"ok","games":{"arma3":"1.02"},"since":"arma3 1.02","arma3_since":"1.02","locality":{"argument":"local","effect":"global"},"description":"Changes the center of mass of an object smoothly during the given time (in seconds). A time of zero (or using the alternative syntax) means an immediate change.","syntaxes":[{"syntax":"myObject setCenterOfMass [centerOfMass, time]","params":[{"name":"myObject","type":"Object","type_expr":"Object"},{"name":"centerOfMass","type":"PositionRelative","description":"relative to the model centre","type_expr":"PositionRelative"},{"name":"time","type":"Number","description":"transition time, 0 for instant center of mass transfer","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"myObject"},"right":{"text":"[centerOfMass, time]"}},{"syntax":"myObject setCenterOfMass centerOfMass","params":[{"name":"myObject","type":"Object","type_expr":"Object"},{"name":"centerOfMass","type":"PositionRelative","description":"relative to the model centre","type_expr":"PositionRelative"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"myObject"},"right":{"text":"centerOfMass"}}],"examples":[{"code":["myObject setCenterOfMass [[0,-1,0], 0.5];"]},{"code":["myObject setCenterOfMass [0,-1,0];"]}],"see_also":["getCenterOfMass","setMass","getMass"],"notes":[{"user":"ffur2007slx2_5","date":"2014-06-20T12:50:00Z","text":"Arma 3 v1.22 A quick reference:\n\n| category | setMass | setCenterOfMass |\n|---|---|---|\n| unit | The larger the mass is, the easier a unit will physically fatigued | N/A |\n| aircraft | The larger the mass is, the more sensitive an aircraft will react to joystick, vice versa. | Aircraft slant due to center change accordingly, and the position of the camera view will be altered relatively at the same time. (3rd person view) |\n| vehicle | The larger the mass is, the slower a vehicle drives (Ships will sink), vice versa. (Land vehicle performs like a bouncing ball while ships accelerated pretty speedy.) | Vehicle slant due to center change accordingly. |"}]}