Wrong direction

Hi everyone,

I am trying to implement a wrong direction function and having huge problems with it!

So the green movement should be the right direction! When the player turns around a message saying “Wrong direction” should appear on the screen!

As you can see the player is on a river! So I cannot just say one direction is wrong, because he turns around according to the turns of the river!

Does anybody have a good idea on how to solve this problem?

Thanks AGAIN :wink:


You must be able to define that path using a curve of some sort. Then you can check how far or what direction the player should be facing from the curve. Take a look at CatmullRomCurve in com.jme.curve:



goint to check that out!