getPosWorldVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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=")
m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=")
Line 16: Line 16:
|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>

Revision as of 14:21, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object ManipulationRender Time Scope

Syntax

Syntax:
Syntax needed
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