mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19dcf00aff
The missile pitches up due to initial angle stuff. I don't know if this is behaviour we want to fix or not?
27 lines
749 B
Plaintext
27 lines
749 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Brandon (TCVM)
|
|
* Holds angle as fed to by seeker
|
|
*
|
|
* Arguments:
|
|
* Guidance Arg Array <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* Commanded acceleration normal to LOS in world space <ARRAY>
|
|
*
|
|
* Example:
|
|
* [] call ace_missileguidance_fnc_navigationType_line
|
|
*
|
|
* Public: No
|
|
*/
|
|
params ["_args", "_timestep", "_seekerTargetPos", "_profileAdjustedTargetPos", "_targetData", "_navigationParams"];
|
|
_args params ["_firedEH"];
|
|
_firedEH params ["","","","","","","_projectile"];
|
|
_args params ["", "", "_flightParams"];
|
|
_flightParams params ["_pitchRate", "_yawRate"];
|
|
|
|
_navigationParams params ["_yawChange", "_pitchChange", "_startTime"];
|
|
|
|
_projectile vectorModelToWorldVisual [2 * _yawChange, 0, 2 * _pitchChange]
|
|
|