vectorUpVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Text replacement - "[[Image:" to "[[File:")
 
(52 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|1.32|Game version=
|version1= 1.32
|arg= global|Multiplayer Arguments=
|arg= global
____________________________________________________________________________________________


| Return object's up vector in world [[Position]] coordinates ( [x, y, z] ) in render time scope. |DESCRIPTION=
|gr1= Math - Vectors
____________________________________________________________________________________________
|gr2= Render Time Scope


| '''vectorUpVisual''' objectName |SYNTAX=
|descr= [[File:arma3_object-vectors.jpg|thumb|right|An object with its [[vectorDirVisual]], [[vectorUpVisual]] and [[vectorSideVisual]] (vectors not to scale)]]
Returns an object's up vector in world space and [[Simulation vs Render Time Scope|render time scope]].


|p1=  objectName: [[Object]] |PARAMETER1=
{{Feature|important|The vector is '''not necessarily [[vectorNormalized|normalized]]'''. The [[vectorMagnitude|magnitude]] of the vector depends on the [[getObjectScale|object's scale]].}}


| [[Array]] - format [[Position]] |RETURNVALUE=
|s1= [[vectorUpVisual]] object
____________________________________________________________________________________________
 
|x1= <code>_vUp = [[vectorUpVisual]] [[vehicle]] [[player]];</code> |EXAMPLE1=
____________________________________________________________________________________________


|p1= object: [[Object]]


| [[vectorUp]], [[vectorDirVisual]], [[vectorDir]], [[setVectorDir]], [[setVectorUp]], [[setVectorDirAndUp]], [[vectorDiff]], [[vectorAdd]], [[vectorMultiply]], [[vectorCrossProduct]], [[vectorDistance]], [[vectorMagnitudeSqr]], [[vectorDistanceSqr]], [[vectorCos]], [[vectorMagnitude]], [[vectorDotProduct]], [[vectorNormalized]], [[vectorFromTo]]  |SEEALSO=
|r1= [[Array]] format [[Vector3D]]


|x1= <sqf>_vecUpVis = vectorUpVisual MyObject;</sqf>
|seealso= [[vectorUp]] [[vectorDirVisual]] [[vectorSide]] [[vectorSideVisual]] [[vectorDir]] [[setVectorDir]] [[setVectorUp]] [[setVectorDirAndUp]] [[vectorDiff]] [[vectorAdd]] [[vectorMultiply]] [[vectorCrossProduct]] [[vectorDistance]] [[vectorMagnitudeSqr]] [[vectorDistanceSqr]] [[vectorCos]] [[vectorMagnitude]] [[vectorDotProduct]] [[vectorNormalized]] [[vectorFromTo]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Render Time Scope Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 23:10, 20 November 2023

Hover & click on the images for description

Description

Description:
An object with its vectorDirVisual, vectorUpVisual and vectorSideVisual (vectors not to scale)

Returns an object's up vector in world space and render time scope.

The vector is not necessarily normalized. The magnitude of the vector depends on the object's scale.
Groups:
Math - VectorsRender Time Scope

Syntax

Syntax:
vectorUpVisual object
Parameters:
object: Object
Return Value:
Array format Vector3D

Examples

Example 1:
_vecUpVis = vectorUpVisual MyObject;

Additional Information

See also:
vectorUp vectorDirVisual vectorSide vectorSideVisual vectorDir setVectorDir setVectorUp setVectorDirAndUp vectorDiff vectorAdd vectorMultiply vectorCrossProduct vectorDistance vectorMagnitudeSqr vectorDistanceSqr vectorCos vectorMagnitude vectorDotProduct vectorNormalized vectorFromTo

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