Warning: file_put_contents(/ff_97f8de26904ed19f47e2bf1c438844659cb3ff85375c1812.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
getCenterOfMass - OFPEC Scripting Command Reference | OFPEC The Editing Center

getCenterOfMass objectName

Operand types

objectName: Object

Type of returned value

Description

Returns center of mass of a PhysX object.

Returned array is [x,y,z] offset relative to the model center.

Used In

Arma3

Example

_com = getCenterOfMass _myCar;

Advertisement