setVelocityTransformation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(example)
Line 25: Line 25:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>_targetUnit [[setVelocityTransformation]] [
|x1= <code>_tracker [[setVelocityTransformation]] [
_tmpPos,
[[getPosASL]] _currentPos,
_tmpPosNext,
[[getPosASL]] _nextPos,
_tmpVel,
[[velocity]] _currentVelocity,
_tmpVelNext,
[[velocity]] _nextVelocity,
_tmpVecDir,
[[vectorDir]] _currentVectorDir,
_tmpVecDirNext,
[[vectorDir]] _nextVectorDir,
_tmpVecUp,
[[vectorUp]] _currentVectorUp,
_tmpVecUpNext,
[[vectorUp]] _nextVectorUp,
_tmpTimeDiff
_timeDiff
];
];
[[comment]] "fn_UnitPlay.sqf from \ca\modules_e\Functions\scenes";</code> |= Example 1
</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 05:22, 4 August 2014

Hover & click on the images for description

Description

Description:
Interpolate and sets vectors. For additional info see this resource.
Groups:
Uncategorised

Syntax

Syntax:
objectName setVelocityTransformation [position1, position2, velocity1, velocity2, direction1, direction2, up1, up2, time]
Parameters:
objectName: Object
position1: Number
position2: Number
velocity1: Number
velocity2: Number
direction1: Number
direction2: Number
up1: Number
up2: Number
time: Number
Return Value:
Nothing

Examples

Example 1:
_tracker setVelocityTransformation [ getPosASL _currentPos, getPosASL _nextPos, velocity _currentVelocity, velocity _nextVelocity, vectorDir _currentVectorDir, vectorDir _nextVectorDir, vectorUp _currentVectorUp, vectorUp _nextVectorUp, _timeDiff ];

Additional Information

See also:
velocity, velocityModelSpace, setVelocity

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