04.09.2015, 22:43
Quote:
I\'m a bit confused because of your FCNPC_OnReachDestination callback. Why is the code so complicated and what\'s the purpose of all this quaternion calculation? I created a similar system a while ago and the code was a lot shorter. I guess I\'m not understanding some functionality and it\'s necessity in your script.
www.youtube.com/watch?v=b3i4jcEBcP0 pawn Code:
|
Also random rotation bugs are appearing, look this:
http://s22.postimg.org/nn6jy04sx/adss_jpg_000009.jpg (The vehicles seen here are still normally moving along the road, turned by ~30°)
http://s22.postimg.org/a4znlpsnl/adss_jpg_000159.jpg (X rotation isn\'t set)
But that\'s only a small part, the speed calculation takes a bit more room, but isn\'t really much code.
In the new version, to save resources, these calculations wont be done when nobody is around.
In the future I also want to calculate the Y rotation too (to the sides).
PS the code you posted looks exactly like the one in my first version
