vectorDirVisual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "<code>_([a-zA-Z0-9_]+) = \[\[([a-zA-Z0-9]+)\]\] _([a-zA-Z0-9_]+);?<\/code>" to "<sqf>_$1 = $2 _$3;</sqf>") |
||
Line 21: | Line 21: | ||
|r1= [[Array]] - format [[Vector3D]] | |r1= [[Array]] - format [[Vector3D]] | ||
|x1= < | |x1= <sqf>_dirVector = vectorDirVisual _unit;</sqf> | ||
|seealso= [[vectorModelToWorldVisual]] [[vectorDir]] [[vectorUpVisual]] [[vectorUp]] [[setVectorDir]] [[setVectorUp]] [[setVectorDirAndUp]] [[vectorDiff]] [[vectorAdd]] [[vectorMultiply]] [[vectorCrossProduct]] [[vectorDistance]] [[vectorMagnitudeSqr]] [[vectorDistanceSqr]] [[vectorCos]] [[vectorMagnitude]] [[vectorDotProduct]] [[vectorNormalized]] [[vectorFromTo]] | |seealso= [[vectorModelToWorldVisual]] [[vectorDir]] [[vectorUpVisual]] [[vectorUp]] [[setVectorDir]] [[setVectorUp]] [[setVectorDirAndUp]] [[vectorDiff]] [[vectorAdd]] [[vectorMultiply]] [[vectorCrossProduct]] [[vectorDistance]] [[vectorMagnitudeSqr]] [[vectorDistanceSqr]] [[vectorCos]] [[vectorMagnitude]] [[vectorDotProduct]] [[vectorNormalized]] [[vectorFromTo]] | ||
}} | }} |
Revision as of 21:23, 7 May 2022
Description
- Description:
- Return object's normalized direction vector in world space ([x,y,z]) in render time scope.
- A unit facing North would return [0,1,0]
- A unit facing East would return [1,0,0]
- A unit facing South would return [0,-1,0]
- A unit facing West would return [-1,0,0]
- Groups:
- Math - VectorsRender Time Scope
Syntax
- Syntax:
- vectorDirVisual objectName
- Parameters:
- objectName: Object
- Return Value:
- Array - format Vector3D
Examples
- Example 1:
Additional Information
- See also:
- vectorModelToWorldVisual vectorDir vectorUpVisual vectorUp 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