getMass: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "<code>_([a-zA-Z0-9_]+) = \[\[([a-zA-Z0-9]+)\]\] _([a-zA-Z0-9_]+);?<\/code>" to "<sqf>_$1 = $2 _$3;</sqf>") |
||
Line 16: | Line 16: | ||
|r1= [[Number]] | |r1= [[Number]] | ||
|x1= < | |x1= <sqf>_mass = getMass _myCar;</sqf> | ||
|seealso= [[getCenterOfMass]] [[setCenterOfMass]] [[setMass]] [[load]] [[weightRTD]] | |seealso= [[getCenterOfMass]] [[setCenterOfMass]] [[setMass]] [[load]] [[weightRTD]] |
Revision as of 21:23, 7 May 2022
Description
- Description:
- Returns mass of a PhysX object.
- Groups:
- Object Manipulation
Syntax
Examples
- Example 1:
Additional Information
- See also:
- getCenterOfMass setCenterOfMass setMass load weightRTD
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on April 15, 2015 - 20:15 (UTC)
- Pierre MGI
- This function will return 0 for infantry AI units. That means a manned Blufor Hunter has the same mass than an empty one (8306.63). Crates return their initial mass, but if you empty them or load items, magazines and weapons, the mass remains the same. In fact, none of these (non-physx) objects has a mass.