Add vecdraw function with better (?) defaults.

This commit is contained in:
Casper V. Kristensen 2019-02-08 22:19:26 +01:00
parent 93f78cf2a8
commit c99684d4dd
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -15,6 +15,24 @@ on NAVMODE {return set_actual_prograde().}
set_actual_prograde().
function vdraw {
parameter vector. // vector or function. For example, pass {return UP:vector.} to automatically update the draw
parameter text is "".
parameter color is RED.
parameter start is V(0,0,0). // same as vector
vecdraw(
start,
vector,
color,
text,
5.0, // scale
true, // show
0.05 // width
).
}
// ANGLES
lock actual_prograde_pitch to vang(actual_prograde:vector, UP:vector).