vectorUpVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - "[[Image:" to "[[File:")
 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


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


Line 8: Line 8:
|gr2= Render Time Scope
|gr2= Render Time Scope


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


| [[Array]] - format [[Position]]
|p1= object: [[Object]]


|x1= <code>_vUp = [[vectorUpVisual]] [[vehicle]] [[player]];</code>
|r1= [[Array]] format [[Vector3D]]


|seealso= [[vectorUp]], [[vectorDirVisual]], [[vectorDir]], [[setVectorDir]], [[setVectorUp]], [[setVectorDirAndUp]], [[vectorDiff]], [[vectorAdd]], [[vectorMultiply]], [[vectorCrossProduct]], [[vectorDistance]], [[vectorMagnitudeSqr]], [[vectorDistanceSqr]], [[vectorCos]], [[vectorMagnitude]], [[vectorDotProduct]], [[vectorNormalized]], [[vectorFromTo]]
|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]]
}}
}}
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}

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