getPosWorldVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class="command_description"> </dl>" to "")
m (Text replacement - ";[ ]+ " to "; ")
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 1.96
|1.96


|arg= global
|arg= global
Line 10: Line 9:
|gr2= Render Time Scope
|gr2= Render Time Scope


| 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 [[Oxygen_2_-_Manual#LandContact|LandContact]] vertices.
|descr= 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 [[Oxygen_2_-_Manual#LandContact|LandContact]] vertices.


| [[getPosWorldVisual]] object
|s1= [[getPosWorldVisual]] object


|p1= object: [[Object]];  
|p1= object: [[Object]];


| [[Array]] - format [[PositionWorld]] in render scope
|r1= [[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>


| [[getPosWorld]], [[setPosWorld]], [[visiblePosition]], [[getPosATLVisual]], [[getPosASLVisual]], [[visiblePositionASL]], [[modelToWorldVisual]], [[modelToWorldVisualWorld]]
|seealso= [[getPosWorld]], [[setPosWorld]], [[visiblePosition]], [[getPosATLVisual]], [[getPosASLVisual]], [[visiblePositionASL]], [[modelToWorldVisual]], [[modelToWorldVisualWorld]]
}}
}}
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 01:54, 8 August 2021

Hover & click on the images for description

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