worldToModel: Difference between revisions
BrettMayson (talk | contribs) mNo edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 24: | Line 24: | ||
|p1= model: [[Object]] | |p1= model: [[Object]] | ||
|p2= position: | |p2= position: [[Position#PositionAGL|PositionAGL]] or [[Position#Introduction|Position2D]] - world position | ||
|r1= [[Position#PositionRelative|PositionRelative]] - position relative to model | |r1= [[Position#PositionRelative|PositionRelative]] - position relative to model | ||
Latest revision as of 07:45, 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: 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