getPosWorld: 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 - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 18: Line 18:
|x3= Wave height under a boat:<code>_h = ((boat [[modelToWorld]] [0,0,0]) [[vectorDiff]] [[getPosWorld]] boat) [[select]] 2;</code>
|x3= Wave height under a boat:<code>_h = ((boat [[modelToWorld]] [0,0,0]) [[vectorDiff]] [[getPosWorld]] boat) [[select]] 2;</code>


| [[getPosWorldVisual]], [[setPosWorld]], [[position]], [[getPosATL]], [[getPosASL]], [[getPosASLW]], [[visiblePosition]], [[visiblePositionASL]], [[getMarkerPos]], [[modelToWorld]]
|seealso= [[getPosWorldVisual]], [[setPosWorld]], [[position]], [[getPosATL]], [[getPosASL]], [[getPosASLW]], [[visiblePosition]], [[visiblePositionASL]], [[getMarkerPos]], [[modelToWorld]]
}}
}}


{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}

Revision as of 23:47, 16 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Positions

Syntax

Syntax:
Syntax needed
Parameters:
object: Object
Return Value:
Return value needed

Examples

Example 1:
_obj setPosWorld getPosWorld _obj;
Example 2:
ATLToASL (_groundObj modelToWorld [0,0,0]) isEqualTo getPosWorld _groundObj; //true
Example 3:
Wave height under a boat:_h = ((boat modelToWorld [0,0,0]) vectorDiff getPosWorld boat) select 2;

Additional Information

See also:
getPosWorldVisualsetPosWorldpositiongetPosATLgetPosASLgetPosASLWvisiblePositionvisiblePositionASLgetMarkerPosmodelToWorld

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