vectorUp: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
(format)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return object's up vector in world [[Position]] coordinates ( [x, y, z] ). |DESCRIPTION=
| Returns up vector of the given object in format [x,y,z]. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Array]] <nowiki>=</nowiki> '''vectorUp''' objectName |SYNTAX=
| [[vectorUp]] object |SYNTAX=


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


| [[Array]] - format [[Position]] |RETURNVALUE=
| [[Array]] - in format [x,y,z] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>objVector = vectorUp myObject;
|x1= <code>_objUpVector = [[vectorUp]] myObject;
</code>|EXAMPLE1=  
</code>|EXAMPLE1=  
| [[vectorUpVisual]], [[vectorDir]], [[setVectorDir]], [[setVectorUp]], [[setVectorDirAndUp]], [[vectorDiff]], [[vectorAdd]], [[vectorMultiply]], [[vectorCrossProduct]], [[vectorDistance]], [[vectorMagnitudeSqr]], [[vectorDistanceSqr]], [[vectorCos]], [[vectorMagnitude]], [[vectorDotProduct]], [[vectorNormalized]], [[vectorFromTo]], [[BIS_fnc_transformVectorDirAndUp]]  |SEEALSO=
| [[vectorUpVisual]], [[vectorDir]], [[setVectorDir]], [[setVectorUp]], [[setVectorDirAndUp]], [[vectorDiff]], [[vectorAdd]], [[vectorMultiply]], [[vectorCrossProduct]], [[vectorDistance]], [[vectorMagnitudeSqr]], [[vectorDistanceSqr]], [[vectorCos]], [[vectorMagnitude]], [[vectorDotProduct]], [[vectorNormalized]], [[vectorFromTo]], [[BIS_fnc_getPitchBank]], [[BIS_fnc_transformVectorDirAndUp]]  |SEEALSO=


}}
}}
Line 25: Line 25:
<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 28 Jun, 2014
<dt class="note">'''[[User:ffur2007slx2_5| ffur2007slx2_5]]'''<dd class="note">
(ArmA3 1.22) Returns the pitch and bank of an object in degrees, use [[BIS_fnc_getPitchBank]] instead.
<!-- Note Section END -->
</dl>
</dl>



Revision as of 23:28, 14 November 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Returns up vector of the given object in format [x,y,z].
Groups:
Uncategorised

Syntax

Syntax:
vectorUp object
Parameters:
object: Object
Return Value:
Array - in format [x,y,z]

Examples

Example 1:
_objUpVector = vectorUp myObject;

Additional Information

See also:
vectorUpVisualvectorDirsetVectorDirsetVectorUpsetVectorDirAndUpvectorDiffvectorAddvectorMultiplyvectorCrossProductvectorDistancevectorMagnitudeSqrvectorDistanceSqrvectorCosvectorMagnitudevectorDotProductvectorNormalizedvectorFromToBIS_fnc_getPitchBankBIS_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

Notes

Bottom Section