Warning: file_put_contents(/ff_ef7bf0677b91fdd7a1ecf12d1946e1c79e8d77f3d564d93e.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