ACE3/addons/common/functions/fnc_translateToModelSpace.sqf

27 lines
513 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2016-05-30 16:37:03 +00:00
/*
* Author: ACE-Team
2016-05-30 16:37:03 +00:00
* ?
*
* Arguments:
* <UNKNOWN>
2016-05-30 16:37:03 +00:00
*
* Return Value:
* Something <UNKNOWN>
*
* Example:
* [UNKNOWN] call ace_common_fnc_translateToModelSpace
2016-05-30 16:37:03 +00:00
*
* Public: No
2016-05-30 16:37:03 +00:00
*/
params ["_object", "_matrix", "_offset"];
private _origin = getPosASL _object;
_matrix params ["_xVec", "_yVec", "_zVec"];
_offset params ["_x", "_y", "_z"];
(_xVec vectorMultiply _x) vectorAdd (_yVec vectorMultiply _y) vectorAdd (_zVec vectorMultiply _z) vectorAdd _origin // return