Hi,
I am having some trouble constraining the side to side movement of a player using the FPSWalker.js script.
In my game I have the charcter step on a platform. After that I would like his side to side movements constrained. And then when he steps off the side to side movement will work again.
I can constrain the movement when he hits the platform but I cannot reinitialize the side to side ability again. Any hep would be great.
How are you currently constraining the movement on the platform? It seems that you ought to be able to enable/disable that constraint via a boolean (onPlatform) or something. A peek at your code might help guide suggestions if you’re already constraining motion in some way.