vectorUpVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "[[Image:" to "[[File:")
 
(46 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


|gr1= Math - Vectors |GROUP1=
|gr1= Math - Vectors
|gr2= Render Time Scope |GROUP2=
|gr2= Render Time Scope
____________________________________________________________________________________________


| Return object's up vector in world [[Position]] coordinates ( [x, y, z] ) in render time scope. |DESCRIPTION=
|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]].


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


|p1= objectName: [[Object]] |PARAMETER1=
|s1= [[vectorUpVisual]] object


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


|r1= [[Array]] format [[Vector3D]]


| [[vectorUp]], [[vectorDirVisual]], [[vectorDir]], [[setVectorDir]], [[setVectorUp]], [[setVectorDirAndUp]], [[vectorDiff]], [[vectorAdd]], [[vectorMultiply]], [[vectorCrossProduct]], [[vectorDistance]], [[vectorMagnitudeSqr]], [[vectorDistanceSqr]], [[vectorCos]], [[vectorMagnitude]], [[vectorDotProduct]], [[vectorNormalized]], [[vectorFromTo]]  |SEEALSO=
|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}}}}]]

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