getPosWorld: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
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 10: Line 10:


|'''getPosWorld''' object
|'''getPosWorld''' object
|p1 = object: [[Object]]
|p1= object: [[Object]]
| [[Array]] - format [[PositionWorld]]
| [[Array]] - format [[PositionWorld]]
|x1 = <code>_obj [[setPosWorld]] [[getPosWorld]] _obj;</code>
|x1= <code>_obj [[setPosWorld]] [[getPosWorld]] _obj;</code>


|x2 = <code>[[ATLToASL]] (_groundObj [[modelToWorld]] [0,0,0]) [[isEqualTo]] [[getPosWorld]] _groundObj; //true</code>
|x2= <code>[[ATLToASL]] (_groundObj [[modelToWorld]] [0,0,0]) [[isEqualTo]] [[getPosWorld]] _groundObj; //true</code>


|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>

Revision as of 23:28, 10 June 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