worldToModel: Difference between revisions
BrettMayson (talk | contribs) mNo edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 26: | Line 26: | ||
|p2= position: [[Array]] format [[Position#PositionAGL|PositionAGL]] or [[Position#Introduction|Position2D]] - world position | |p2= position: [[Array]] format [[Position#PositionAGL|PositionAGL]] or [[Position#Introduction|Position2D]] - world position | ||
|r1= | |r1= [[Position#PositionRelative|PositionRelative]] - position relative to model | ||
|x1= <sqf>_relPos = myObject worldToModel [0,0,0];</sqf> | |x1= <sqf>_relPos = myObject worldToModel [0,0,0];</sqf> | ||
Revision as of 07:43, 2 January 2026
Description
- Description:
- Converts position from world space to object model space.
- Groups:
- Positions
Syntax
- Syntax:
- model worldToModel position
- Parameters:
- model: Object
- position: Array format PositionAGL or Position2D - world position
- Return Value:
- PositionRelative - position relative to model
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- worldToModelVisual vectorWorldToModel modelToWorld
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Positions