getMass: Difference between revisions
Lou Montana (talk | contribs) |
mNo edit summary |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
|arg= global | |arg= global | ||
|gr1= | |gr1= PhysX | ||
|descr= Returns mass of a PhysX object. | |descr= Returns mass of a PhysX object. | ||
Line 16: | Line 16: | ||
|r1= [[Number]] | |r1= [[Number]] | ||
|x1= < | |x1= <sqf>_mass = getMass _myCar;</sqf> | ||
|seealso= [[getCenterOfMass]] [[setCenterOfMass]] | |seealso= [[getCenterOfMass]] [[setCenterOfMass]] [[setMass]] [[load]] [[weightRTD]] [[getModelInfo]] | ||
}} | }} | ||
Line 24: | Line 24: | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2015-04-15 - 20:15 (UTC)</dd> | ||
<dt class="note">[[User:Pierre MGI|Pierre MGI]]</dt> | <dt class="note">[[User:Pierre MGI|Pierre MGI]]</dt> | ||
<dd class="note"> | <dd class="note"> |
Latest revision as of 13:00, 26 June 2025
Description
- Description:
- Returns mass of a PhysX object.
- Groups:
- PhysX
Syntax
Examples
- Example 1:
Additional Information
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 2015-04-15 - 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.