modelToWorldWorld: Difference between revisions
BrettMayson (talk | contribs) mNo edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 20: | Line 20: | ||
|p2= modelPos: [[Position#PositionRelative|PositionRelative]] | |p2= modelPos: [[Position#PositionRelative|PositionRelative]] | ||
|r1= | |r1= [[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> | ||
Latest revision as of 07:47, 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: PositionRelative
- Return Value:
- 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