getPosWorldVisual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
BrettMayson (talk | contribs) mNo edit summary |
||
Line 15: | Line 15: | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|r1= [[Array]] | |r1= [[Array]] format [[Position#PositionASL|PositionASL]] - '''the model centre'''<nowiki/>'s position (see [[getPosWorld]]) in render scope | ||
|x1= <sqf>_obj setPosWorld getPosWorldVisual _obj;</sqf> | |x1= <sqf>_obj setPosWorld getPosWorldVisual _obj;</sqf> |
Latest revision as of 21:29, 28 September 2023
Description
- Description:
- Returns the provided object's, model centre position in render version in format PositionASL, rather than transformed boundingCenter or LandContact vertices.
- Groups:
- Object ManipulationRender Time Scope
Syntax
- Syntax:
- getPosWorldVisual object
- Parameters:
- object: Object
- Return Value:
- Array format PositionASL - the model centre's position (see getPosWorld) in render scope
Examples
- Example 1:
- Example 2:
- Example 3:
- private _waveHeight = ((boat modelToWorldVisual [0,0,0]) vectorDiff getPosWorldVisual boat) select 2;
Additional Information
- See also:
- getPosWorld setPosWorld visiblePosition getPosATLVisual getPosASLVisual visiblePositionASL modelToWorldVisual modelToWorldVisualWorld
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