Orbiter English > Dan's add-ons

UCGO coding of direction

(1/1)

gattico:
I noticed  in the code for setting where a cargo is loaded you have a vector for location and rotation but not direction?

Is there a way to do it without making new cfg for the cargo?

like this using UCD:


This is what I get using UCGO though:


Here is the code:

--- Code: ---hUcgo.DeclareCargoSlot(0, _V(3.400, 0.000, 5.200), _V(-1,0,0)); // slot 0
hUcgo.DeclareCargoSlot(1, _V(0.000, - 3.400, 5.200), _V(0, 0, 1)); // slot 0
hUcgo.DeclareCargoSlot(2, _V(2.900, -1.700, 5.200), _V(-0.8660, 0.0000 ,0.5000)); // slot 0
hUcgo.DeclareCargoSlot(3, _V(1.700, -2.900, 5.200), _V(-0.5000, 0.0000 ,0.8660)); // slot 0
--- End code ---

Navigation

[0] Message Index

Go to full version