I am making rough prototype of the game, it's about small scooter that rides across gentle slopes and can jump. I got the movement part working fine, but I have small problems with rotation of the bike when it jumps because it of course spins too much. I make it jump by applying force because it's physic engine run object. Is there a way to limit spinning because I need physics to run the bike but it would be good if it can jump like platformed or at least limit rotation to +20 degrees in jump for example.
Develop games in your browser. Powerful, performant & highly capable.
Here is an example of using using physics angular velocity - maybe you could adapt it ?