Dan's Orbiter page

Orbiter English => Dan's add-ons => Topic started by: gattico on 09 February 2015, 12:56:38

Title: UCGO coding of direction
Post by: gattico on 09 February 2015, 12:56:38
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:
(http://i373.photobucket.com/albums/oo179/gattispilot/image007_zpssqvq3964.jpg)

This is what I get using UCGO though:
(http://i373.photobucket.com/albums/oo179/gattispilot/skylabucgo_zpskhukp9kx.jpg)

Here is the code:
Code: [Select]
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