worldToModel: Difference between revisions
Jump to navigation
Jump to search
m (fixed ver) |
Dr Eyeball (talk | contribs) No edit summary |
||
Line 26: | Line 26: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
The ''worldPos'' parameter appears to be a relative offset to the position of ''object'', so it can often simply be [0,0,0].<BR> | |||
'''Example:''' to position an object ''_obj'' relative to the position of another object ''_RelObj'' with on offset of ''_Offset'', try: | |||
_Offset = [_x,_y,_z]; | |||
_worldPos = _RelObj modelToWorld _Offset; | |||
_obj setPos _worldPos; | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 01:52, 18 February 2007
Description
- Description:
- Converts position from world space to object model space.
- Groups:
- Uncategorised
Syntax
Examples
- Examples:
- Example needed
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
-
The worldPos parameter appears to be a relative offset to the position of object, so it can often simply be [0,0,0].
Example: to position an object _obj relative to the position of another object _RelObj with on offset of _Offset, try: _Offset = [_x,_y,_z]; _worldPos = _RelObj modelToWorld _Offset; _obj setPos _worldPos;