vectorUp: Difference between revisions
Killzone Kid (talk | contribs) No edit summary  | 
				 (Added image, standardized description, syntax and example)  | 
				||
| Line 20: | Line 20: | ||
|gr2= Math - Vectors  | |gr2= Math - Vectors  | ||
|descr=   | |descr= [[Image:arma3_object-vectors.jpg|thumb|right|An object with its [[vectorDir]], [[vectorUp]] and [[vectorSide]] (vectors not to scale)]]  | ||
{{Feature|important|The vector is '''not necessarily [[vectorNormalized|normalized]]'''. The [[vectorMagnitude|magnitude]] of the vector   | Returns an object's up vector in world space.  | ||
{{Feature|important|The vector is '''not necessarily [[vectorNormalized|normalized]]'''. The [[vectorMagnitude|magnitude]] of the vector depends on the [[getObjectScale|object's scale]].}}  | |||
|s1= [[vectorUp]] object  | |s1= [[vectorUp]] object  | ||
| Line 27: | Line 29: | ||
|p1= object: [[Object]]  | |p1= object: [[Object]]  | ||
|r1= [[Array]]   | |r1= [[Array]] format [[Vector3D]]  | ||
|x1= <sqf>_vecUp = vectorUp MyObject;</sqf>  | |||
|seealso= [[vectorUpVisual]] [[vectorDir]] [[vectorSide]] [[vectorSideVisual]] [[setVectorDir]] [[setVectorUp]] [[setVectorDirAndUp]] [[vectorDiff]] [[vectorAdd]] [[vectorMultiply]] [[vectorCrossProduct]] [[vectorDistance]] [[vectorMagnitudeSqr]] [[vectorDistanceSqr]] [[vectorCos]] [[vectorMagnitude]] [[vectorDotProduct]] [[vectorNormalized]] [[vectorFromTo]] [[BIS_fnc_getPitchBank]] [[BIS_fnc_transformVectorDirAndUp]]  | |seealso= [[vectorUpVisual]] [[vectorDir]] [[vectorSide]] [[vectorSideVisual]] [[setVectorDir]] [[setVectorUp]] [[setVectorDirAndUp]] [[vectorDiff]] [[vectorAdd]] [[vectorMultiply]] [[vectorCrossProduct]] [[vectorDistance]] [[vectorMagnitudeSqr]] [[vectorDistanceSqr]] [[vectorCos]] [[vectorMagnitude]] [[vectorDotProduct]] [[vectorNormalized]] [[vectorFromTo]] [[BIS_fnc_getPitchBank]] [[BIS_fnc_transformVectorDirAndUp]]  | ||
}}  | }}  | ||
Revision as of 11:03, 9 September 2023
Description
- Description:
 - 
Returns an object's up vector in world space.
 - Groups:
 - Math - Vectors
 
Syntax
Examples
- Example 1:
 
Additional Information
- See also:
 - vectorUpVisual vectorDir vectorSide vectorSideVisual setVectorDir setVectorUp setVectorDirAndUp vectorDiff vectorAdd vectorMultiply vectorCrossProduct vectorDistance vectorMagnitudeSqr vectorDistanceSqr vectorCos vectorMagnitude vectorDotProduct vectorNormalized vectorFromTo BIS_fnc_getPitchBank BIS_fnc_transformVectorDirAndUp
 
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 
Categories: 
- Scripting Commands
 - Introduced with Armed Assault version 1.00
 - ArmA: Armed Assault: New Scripting Commands
 - ArmA: Armed Assault: Scripting Commands
 - Arma 2: Scripting Commands
 - Arma 2: Operation Arrowhead: Scripting Commands
 - Take On Helicopters: Scripting Commands
 - Arma 3: Scripting Commands
 - Command Group: Math - Vectors