getPosWorld: Difference between revisions
m (Replaced <code> with <sqf>) |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 14: | Line 14: | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|r1= | |r1= [[Position#PositionASL|PositionASL]] - '''the model's centre''' | ||
|x1= <sqf>_obj setPosWorld getPosWorld _obj;</sqf> | |x1= <sqf>_obj setPosWorld getPosWorld _obj;</sqf> | ||
Latest revision as of 07:47, 2 January 2026
Description
- Description:
- Returns the provided object's model centre position ([0,0,0]) in PositionASL, rather than the transformed boundingCenter or LandContact vertices.
- Groups:
- Positions
Syntax
- Syntax:
- getPosWorld object
- Parameters:
- object: Object
- Return Value:
- PositionASL - the model's centre
Examples
- Example 1:
- Example 2:
- Example 3:
- Wave height under a boat:
Additional Information
- See also:
- getPosWorldVisual setPosWorld position getPosATL getPosASL getPosASLW visiblePosition visiblePositionASL getMarkerPos modelToWorld
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note