getPosWorldVisual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) 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=") |
BrettMayson (talk | contribs) mNo edit summary |
||
(17 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.96 | |||
|1.96 | |||
|arg= global | |arg= global | ||
Line 10: | Line 9: | ||
|gr2= Render Time Scope | |gr2= Render Time Scope | ||
| Returns render version | |descr= Returns the provided object's, model centre position in render version in format [[Position#PositionASL|PositionASL]], rather than transformed [[boundingCenter]] or [[Oxygen_2_-_Manual#LandContact|LandContact]] vertices. | ||
| [[getPosWorldVisual]] object | |s1= [[getPosWorldVisual]] object | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
| [[Array]] - | |r1= [[Array]] format [[Position#PositionASL|PositionASL]] - '''the model centre'''<nowiki/>'s position (see [[getPosWorld]]) in render scope | ||
|x1= < | |x1= <sqf>_obj setPosWorld getPosWorldVisual _obj;</sqf> | ||
|x2= < | |x2= <sqf>_groundObj modelToWorldVisualWorld [0,0,0] isEqualTo getPosWorldVisual _groundObj; // true</sqf> | ||
|x3= | |x3= <sqf>private _waveHeight = ((boat modelToWorldVisual [0,0,0]) vectorDiff getPosWorldVisual boat) select 2;</sqf> | ||
|seealso= [[getPosWorld]] | |seealso= [[getPosWorld]] [[setPosWorld]] [[visiblePosition]] [[getPosATLVisual]] [[getPosASLVisual]] [[visiblePositionASL]] [[modelToWorldVisual]] [[modelToWorldVisualWorld]] | ||
}} | }} |
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