mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
macro for throw angle
This commit is contained in:
parent
2d071f459f
commit
d6c26eb89d
@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#define OFFSET_LATERAL 0.59
|
||||
#define THROW_ANGLE 63.43
|
||||
#define THROW_VELOCITY 1.5
|
||||
#define THROW_TORQUE 0.2
|
||||
|
||||
@ -35,7 +36,7 @@ private _vLat = vectorNormalized (_vDir vectorCrossProduct [0, 0, 1]);
|
||||
private _vUp = _vLat vectorCrossProduct _vDir;
|
||||
|
||||
private _position = _unit modelToWorldWorld (_unit selectionPosition "RightHand") vectorAdd (_vLat vectorMultiply OFFSET_LATERAL);
|
||||
private _velocity = vectorNormalized (_vDir vectorAdd (_vUp vectorMultiply 2)) vectorMultiply THROW_VELOCITY vectorAdd velocity _unit;
|
||||
private _velocity = vectorNormalized (_vDir vectorAdd (_vUp vectorMultiply tan THROW_ANGLE)) vectorMultiply THROW_VELOCITY vectorAdd velocity _unit;
|
||||
|
||||
_unit removeWeapon _weapon;
|
||||
_holder setPosWorld _position;
|
||||
|
Loading…
Reference in New Issue
Block a user