Cool, glad it worked out. and now you have a new PID Controller tool for other stuff.
actually, in the approach I suggested, dotting rightside with goaldirection isn't measureing the actual angle at all (in fact, i dont think we even normalized anything)
but it works anyway because that dot product converges to 0 when the angle is also near 0
So it's kinda a hack, but as long as they converge to the same critical point the overall behaviour is usable -cool tip for future ideas
LookAt function
Quote: Original post by Anonymous Poster
Cool, glad it worked out. and now you have a new PID Controller tool for other stuff.
actually, in the approach I suggested, dotting rightside with goaldirection isn't measureing the actual angle at all (in fact, i dont think we even normalized anything)
but it works anyway because that dot product converges to 0 when the angle is also near 0
So it's kinda a hack, but as long as they converge to the same critical point the overall behaviour is usable -cool tip for future ideas
Indeed!
I have to normalize the direction vector! Otherwise the pid controller returns a huge values!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement