Physics vehicle with precise jumping

Get help using Construct 2

Post » Sat Apr 07, 2012 11:36 pm

Where I'm stuck is attempting to give a physics vehicle the ability to jump, with a very clear and predictable path. Since the vehicle relies on physics for the wheels, giving the body platform behaviour really causes everything to go crazy. I attempted to instead use a physics solution (impulse), but the jump was incredibly unpredictable. That makes designing a platform game a nightmare.

Is there any way to use the vehicle in my capx file, and give it the ability to perform a predictable jump (arrow up key)?

Another important factor was that I do not want the car to ever flip over. When using physics for jumping, I created angle restrictions for the CarBody to never go outside the 20 or 340 degree angle range. I removed that from the attached capx file, since a better jumping solution may not need this.

Another important thing is that the vehicle should never be able to jump while already in the air. I might have to solve that with an attached helper to the bottom of the vehicle, with a condition event to only allow jumps when it overlaps the ground(again, dependent on a better solution).


Here is my capx:
Vehicle capxPaulStrife2012-04-08 04:55:14
B
3
Posts: 14
Reputation: 453

Post » Sun Apr 08, 2012 9:18 pm

If anyone can help on this, that would be appreciated. I can't progress without nailing down the player dynamics.

Part of the reason behind needing a solution other than physics, is that "jumping" has horrible results on ramps. Especially at 45 degree angles.
B
3
Posts: 14
Reputation: 453

Post » Sun Apr 08, 2012 9:43 pm

I've decided to not use physics, instead relying on Platform behaviour exclusively.

It would have been nice to have realistic wheel behaviour, but there was just too much unpredictability with physics (as there should be).

Ignore this thread. I was likely asking for far too much.
B
3
Posts: 14
Reputation: 453

Post » Wed Jan 15, 2014 9:18 pm

Can you reupload this?
B
34
S
8
G
7
Posts: 498
Reputation: 7,753


Return to How do I....?

Who is online

Users browsing this forum: Renfd and 31 guests