Steering
by Badguy · in Torque Game Engine · 01/02/2003 (2:26 pm) · 4 replies
.. *sniffle*
someone took the relax off the steering...
and now my bots always steer....
I have to know why? I mean .. it only makes sense to relax the wheels .. just like in real life ..
if you let go of the wheel it straightens out.
not anymore :(
.. I cannot seem to find anything in the changelog about this.
was something changed?
it does not do this in other versions
(the wheels on the car would straighten out if you did not persist turn)
someone took the relax off the steering...
and now my bots always steer....
I have to know why? I mean .. it only makes sense to relax the wheels .. just like in real life ..
if you let go of the wheel it straightens out.
not anymore :(
.. I cannot seem to find anything in the changelog about this.
was something changed?
it does not do this in other versions
(the wheels on the car would straighten out if you did not persist turn)
About the author
#2
01/03/2003 (8:37 pm)
Nope - works the same for (from Dec 12 HEAD anyway) as it did in the spring.
#3
I've pasted code from an old version into a new head and now the code produces different results.
what im doing is creating yaw by making a triangle using center front and desired location creating an angle using length's
and using that angle as a radian as the yaw. worked sweet before
but now the yaw it calculates is wrong .. like it is backwards.
I'm using the box center of vehicle and the max y to create the front and center this worked before and according to theory it should work. and did. then rotating the desired point around the center to calculate left or right angle.
I fear the super hack of getting front of vehicle is messing with me but further deduction proves that is not so.
I really need to solve this.
01/03/2003 (8:54 pm)
hmm something is different and indeed it is not the vehicle code..I've pasted code from an old version into a new head and now the code produces different results.
what im doing is creating yaw by making a triangle using center front and desired location creating an angle using length's
and using that angle as a radian as the yaw. worked sweet before
but now the yaw it calculates is wrong .. like it is backwards.
I'm using the box center of vehicle and the max y to create the front and center this worked before and according to theory it should work. and did. then rotating the desired point around the center to calculate left or right angle.
I fear the super hack of getting front of vehicle is messing with me but further deduction proves that is not so.
I really need to solve this.
#4
finally! I can't believe it yet
// mAimLocationSet = true;
did the trick ! :)
now ill go see why.
I see it was not getting reset to false when necessary so it didnt reassign the position fast enuff causing him to flutter his wheels .. wow.
Indeed it should be with the call to the onReachDestination callback imho.
01/03/2003 (9:45 pm)
Woot! finally! I can't believe it yet
// mAimLocationSet = true;
did the trick ! :)
now ill go see why.
I see it was not getting reset to false when necessary so it didnt reassign the position fast enuff causing him to flutter his wheels .. wow.
Indeed it should be with the call to the onReachDestination callback imho.
Torque Owner Badguy
at least not changed this..
now im really lost as to what it is..
has anyone else noticed that this has changed?