I am working on a skateboard game and the controller gets better every day. The next problem that Ive encountered is that my board gets pretty unstable when moving up a halfpipe and also when in air. See the video: Watch SkateGamePrototypeIssues | Streamable
Ideally the board should stay on the virtual plane that is created when elongating the pipe surface into the y direction.
I already have implemented a mechanism that directs die applied forces along the tangent of the ground in forward direction of the board and also has a gravity compensation.
But for this I guess I need something that keeps the board from moving in y direction (the boards y is always upwards from the griptape). the best solution is something that keeps the board glued to the surface at al time (except when jumping) so that this sliding in the pipe is getting prevented.
How can I realise something like this? I have absolutely no idea. I tried to tried to get the ground position and keep the y the same when in air but either I did it wrong or this is not the right way. The final version should be able to fly around a curved halfpipe like in the Tony hawk games so that the board always lands inside the pipe.