getPosWorldVisual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "PositionASL" to "PositionASL") |
Lou Montana (talk | contribs) m (Text replacement - "PositionWorld" to "PositionWorld") |
||
Line 9: | Line 9: | ||
|gr2= Render Time Scope | |gr2= Render Time Scope | ||
|descr= Returns render version of [[PositionWorld]], which is [[Position#PositionASL|PositionASL]] of the model centre [0,0,0] of an object in render scope, rather than transformed [[boundingCenter]] or [[Oxygen_2_-_Manual#LandContact|LandContact]] vertices. | |descr= Returns render version of [[Position#PositionWorld|PositionWorld]], which is [[Position#PositionASL|PositionASL]] of the model centre [0,0,0] of an object in render scope, rather than transformed [[boundingCenter]] or [[Oxygen_2_-_Manual#LandContact|LandContact]] vertices. | ||
|s1= [[getPosWorldVisual]] object | |s1= [[getPosWorldVisual]] object | ||
Line 15: | Line 15: | ||
|p1= object: [[Object]]; | |p1= object: [[Object]]; | ||
|r1= [[Array]] - format [[PositionWorld]] in render scope | |r1= [[Array]] - format [[Position#PositionWorld|PositionWorld]] in render scope | ||
|x1= <code>_obj [[setPosWorld]] [[getPosWorldVisual]] _obj;</code> | |x1= <code>_obj [[setPosWorld]] [[getPosWorldVisual]] _obj;</code> |
Revision as of 17:04, 5 January 2022
Description
- Description:
- Returns render version of PositionWorld, which is PositionASL of the model centre [0,0,0] of an object in render scope, rather than transformed boundingCenter or LandContact vertices.
- Groups:
- Object ManipulationRender Time Scope
Syntax
- Syntax:
- getPosWorldVisual object
- Parameters:
- object: Object;
- Return Value:
- Array - format PositionWorld in render scope
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