modelToWorldWorld: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
BrettMayson (talk | contribs) No edit summary |
||
| Line 20: | Line 20: | ||
|p2= modelPos: [[Array]] format [[Position#PositionRelative|PositionRelative]] | |p2= modelPos: [[Array]] format [[Position#PositionRelative|PositionRelative]] | ||
|r1= [[Array]] | |r1= [[Array]] format [[Position#PositionASL|PositionASL]] - '''the model's centre''' (see [[getPosWorld]]) | ||
|x1= <sqf>private _playersFrontWorld = player modelToWorldWorld [0,1,0];</sqf> | |x1= <sqf>private _playersFrontWorld = player modelToWorldWorld [0,1,0];</sqf> | ||
Revision as of 07:38, 2 January 2026
Description
- Description:
- Converts position from object model space to world space in PositionASL format from the object's centre position.
- Groups:
- Positions
Syntax
- Syntax:
- obj modelToWorldWorld modelPos
- Parameters:
- obj: Object
- modelPos: Array format PositionRelative
- Return Value:
- Array format PositionASL - the model's centre (see getPosWorld)
Examples
- Example 1:
Additional Information
- See also:
- modelToWorldVisualWorld
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note