See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: UCGO coding of direction  (Read 656 times)

0 Members and 1 Guest are viewing this topic.

Offline gattico

  • Sr. Member
  • ****
  • Posts: 289
  • Country: United States us
  • Karma: 4
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:


This is what I get using UCGO though:


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