getPosWorldVisual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
||
Line 3: | Line 3: | ||
| arma3dev |Game name= | | arma3dev |Game name= | ||
|1.95| | |1.95|Game version= | ||
|arg= global|Multiplayer Arguments= | |arg= global|Multiplayer Arguments= | ||
Revision as of 21:25, 31 August 2019
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:
- Uncategorised
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
[[Category:Introduced with arma3dev version 1.95]][[ Category: arma3dev: New Scripting Commands | GETPOSWORLDVISUAL]][[ Category: arma3dev: Scripting Commands | GETPOSWORLDVISUAL]]