Feature Request - Prismatic Joints

Discussion and feedback on Construct 2

Post » Thu Sep 19, 2013 10:26 am

Hey

I'm looking into making a car/trail bike game using physics.
I've been looking on this forum for the past 2 days looking for a way to make a (sort of) realistic car suspension.

I've tried setting up limited revolution joints but that doesn't get me the "spring" effect. Distance joints just move to the side when the car lands on top.

I've tried applying an upward force to the car when the wheels hit the ground. The car moves back up but it kind of floats up and down. (example).

I've learned that what I need is a prismatic joint, a joint that can only move on one axis. I found this article that describes how to make a car suspension/spring in javascript. I considered making a plugin myself but my javascript skills are close to non-existent.

Is there any way this can be implemented in C2?
B
7
S
2
Posts: 14
Reputation: 630

Post » Thu Sep 19, 2013 1:07 pm

Have you tried this tutorial: https://www.scirra.com/tutorials/240/physical-bike ? I have not tested it but it seems to correspond to what you're describingOlivierC2013-09-19 13:09:34
B
12
S
5
G
2
Posts: 132
Reputation: 2,627


Return to Construct 2 General

Who is online

Users browsing this forum: monikarr6 and 13 guests