getPosWorldVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (arma3dev → arma3)
mNo edit summary
Line 7: Line 7:


|arg= global|Multiplayer Arguments=
|arg= global|Multiplayer Arguments=
|gr1= Object Manipulation |=GROUP1
|gr2= Render Time Scope |=GROUP2
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 38: Line 41:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Render Time Scope Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 16:37, 15 September 2020

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

Notes

Bottom Section