vectorUpVisual: Difference between revisions

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


| arma3 |= Game name
|game1= arma3
|version1= 1.32
|arg= global


|1.27|= Game version
|gr1= Math - Vectors
____________________________________________________________________________________________
|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]] |= Parameter 1
|s1= [[vectorUpVisual]] object


| [[Array]] - format [[Position]] |= Return value
|p1= object: [[Object]]
____________________________________________________________________________________________
 
|x1= <code>_vUp = [[vectorUpVisual]] [[vehicle]] [[player]];</code> |= Example 1
____________________________________________________________________________________________


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


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