modelToWorldVisualWorld: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "")
(30 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|=
{{RV|type=command
____________________________________________________________________________________________


|arma3|= Game
|arma3|= Game
|1.70|= Game Version
|1.70
|arg= |= Multiplayer Arguments
|arg=
|eff= |= Multiplayer Effects
|eff=


____________________________________________________________________________________________
|gr1= Object Manipulation
|gr2= Render Time Scope


| Converts position from object model space to world space in render time. |= Description
| Converts position from object model space to world space in render time.


____________________________________________________________________________________________
| obj '''modelToWorldVisualWorld''' modelPos
|p1= obj: [[Object]]
|p2= modelPos: [[Array]]
| [[Array]] - World position in format [[PositionASL]]


| obj '''modelToWorldVisualWorld''' modelPos |= Syntax
|x1= <code>[[player]] [[modelToWorldVisualWorld]] [0,1,0]</code>
|p1= obj: [[Object]] |= Parameter 1
|p2= modelPos: [[Array]] |= Parameter 2
| [[Array]] |= Return Value


|x1= <code>([[getPos]] [[player]]) [[modelToWorldVisualWorld]] [0,1,0]</code> |= Example 1
|seealso= [[modelToWorldWorld]], [[modelToWorldVisual]], [[getPosWorldVisual]]
| [[modelToWorldWorld]] |= See Also
}}
}}


<dl class='command_description'>
 
<!-- BEGIN Note Section -->
<dl class="command_description">
<!-- For example:
<dt></dt>
<dd class='notedate'>Posted on Month Day, Year - Time (UTC)</dd>
<dd class="notedate">Posted on May 28, 2017 - 22:19 (UTC)</dd>
<dt class='note'>'''[[User:User Name|User Name]]'''</dt>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dd class='note'>This is an example note. It is true and verifiable, and contains a little code snippet.
<dd class="note">
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] Leave it here for others to read; };</code></dd>
This command produces identical result to [[modelToWorldVisual]] command used in conjunction with [[AGLToASL]]
-->
<code>obj [[modelToWorldVisualWorld]] [1,2,3] [[isEqualTo]] [[AGLToASL]] (obj [[modelToWorldVisual]] [1,2,3]); // true</code>
<!-- END Note Section -->
</dd>
</dl>
</dl>
<h3 style='display:none'>Bottom Section</h3>
<!-- Appropriate categories go here -->
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 01:55, 6 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object ManipulationRender Time Scope

Syntax

Syntax:
Syntax needed
Parameters:
obj: Object
modelPos: Array
Return Value:
Return value needed

Examples

Example 1:
player modelToWorldVisualWorld [0,1,0]

Additional Information

See also:
modelToWorldWorldmodelToWorldVisualgetPosWorldVisual

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


Posted on May 28, 2017 - 22:19 (UTC)
Killzone Kid
This command produces identical result to modelToWorldVisual command used in conjunction with AGLToASL obj modelToWorldVisualWorld [1,2,3] isEqualTo AGLToASL (obj modelToWorldVisual [1,2,3]); // true