I'm developing a simple educational game using AndEngine. To move the object on the path I use Path and I am struggling to give it a smooth turning effect.
Can anyone explain me how to make object move along specified path with smooth turns?
I'm developing a simple educational game using AndEngine. To move the object on the path I use Path and I am struggling to give it a smooth turning effect.
Can anyone explain me how to make object move along specified path with smooth turns?
Path is not really set up for that if I remember correctly. However, imagine you have a sprite named wasp, then use amplitude and frequency to adjust the motion of a sinusodial:
This is a periodic motion, but depending on involved functions and randomness it can be made to become very complex. Key is to make a function that varies over time e.g this.mEngine.getSecondsElapsedTotal().