Faster Stopping With Physics

Get help using Construct 2

Post » Sat Mar 23, 2013 2:42 am

I'm trying to make something where the player has a ball and moves it around by clicking.

I'm just applying an impulse of 1 on click towards the mouse position.
Right now, the ball rolls forever like so. However I want it to slow to a stop more quickly like this. I've turned the friction up on the ball and the floor . I've also messed around with the linear dampening, but that messes up the trajectory and makes it look weird. Is there another way to do this?
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Sat Mar 23, 2013 8:50 am

Hi,

you could try controlling the ball x velocity.
B
45
S
15
G
9
Posts: 1,096
Reputation: 11,038

Post » Sun Mar 24, 2013 3:35 pm

@spongehammer

I suppose I could do that, but how would I know the difference between it being in the air or on the ground. And how could I decide if its rolling on a flat surface or if its going down a hill?
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Sun Mar 24, 2013 7:41 pm

Well you could check for an overlap to see if its on a surface or not and you could check the y velocity to see if its going up or down.

B
45
S
15
G
9
Posts: 1,096
Reputation: 11,038


Return to How do I....?

Who is online

Users browsing this forum: Kagubro and 18 guests