Limit rotation of physics controlled object

Get help using Construct 2

Post » Mon Feb 24, 2014 4:29 pm

Hello,

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.
B
5
Posts: 27
Reputation: 279

Post » Mon Feb 24, 2014 8:25 pm

Here is an example of using using physics angular velocity - maybe you could adapt it ?

https://dl.dropboxusercontent.com/u/143636437/examples%20for%20web/test%20physics%20point%20at.capx
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, Mayfly and 6 guests