getPosWorldVisual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - " \|(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=") |
||
Line 18: | Line 18: | ||
| [[Array]] - format [[PositionWorld]] in render scope | | [[Array]] - format [[PositionWorld]] in render scope | ||
|x1 = <code>_obj [[setPosWorld]] [[getPosWorldVisual]] _obj;</code> | |x1= <code>_obj [[setPosWorld]] [[getPosWorldVisual]] _obj;</code> | ||
|x2 = <code>_groundObj [[modelToWorldVisualWorld]] [0,0,0] [[isEqualTo]] [[getPosWorldVisual]] _groundObj; //true</code> | |x2= <code>_groundObj [[modelToWorldVisualWorld]] [0,0,0] [[isEqualTo]] [[getPosWorldVisual]] _groundObj; //true</code> | ||
|x3 = Wave height under a boat:<code>_h = ((boat [[modelToWorldVisual]] [0,0,0]) [[vectorDiff]] [[getPosWorldVisual]] boat) [[select]] 2;</code> | |x3= Wave height under a boat:<code>_h = ((boat [[modelToWorldVisual]] [0,0,0]) [[vectorDiff]] [[getPosWorldVisual]] boat) [[select]] 2;</code> | ||
|seealso= [[getPosWorld]], [[setPosWorld]], [[visiblePosition]], [[getPosATLVisual]], [[getPosASLVisual]], [[visiblePositionASL]], [[modelToWorldVisual]], [[modelToWorldVisualWorld]] | |seealso= [[getPosWorld]], [[setPosWorld]], [[visiblePosition]], [[getPosATLVisual]], [[getPosASLVisual]], [[visiblePositionASL]], [[modelToWorldVisual]], [[modelToWorldVisualWorld]] | ||
}} | }} |
Revision as of 23:28, 10 June 2021
Description
- Description:
- Description needed
- Groups:
- Object ManipulationRender Time Scope
Syntax
- Syntax:
- Syntax needed
- Parameters:
- object: Object;
- Return Value:
- Return value needed
Examples
- Example 1:
_obj setPosWorld getPosWorldVisual _obj;
- Example 2:
_groundObj modelToWorldVisualWorld [0,0,0] isEqualTo getPosWorldVisual _groundObj; //true
- Example 3:
- Wave height under a boat:
_h = ((boat modelToWorldVisual [0,0,0]) vectorDiff getPosWorldVisual boat) select 2;
Additional Information
- See also:
- getPosWorldsetPosWorldvisiblePositiongetPosATLVisualgetPosASLVisualvisiblePositionASLmodelToWorldVisualmodelToWorldVisualWorld
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