16.12.2016, 16:18
I am trying to do this:
Teleport one vehicle to another vehicle's back. Whatever the angle i am looking at.
Example:
If i am im pos (inside vehicle, state driver):
And i am looking at NORH (0.0)
The second vehicle will be teleported to:
Because when i move to NORTH, the Y position is changing.
So my logic at this point is: Get the BOTH vehicle positions and the ZAngle of the FIRST vehicle (i am in it). And now??
Teleport one vehicle to another vehicle's back. Whatever the angle i am looking at.
Example:
If i am im pos (inside vehicle, state driver):
Код:
0.0 , 0.0 , 0.0
The second vehicle will be teleported to:
Код:
0.0 , -1.0 , 0.0
So my logic at this point is: Get the BOTH vehicle positions and the ZAngle of the FIRST vehicle (i am in it). And now??