(S)How do I slow down a physics object over time?

Get help using Construct 2

Post » Mon May 01, 2017 1:20 am

Hey,
I've got this object that has a physics behaviour attached to it and I'm applying a force to it when I'm pressing the space bar and I'd want it to slow down gradually over time as I'm not pressing the space bar.

How can I do this?
Thanks!
Last edited by TRMG on Tue May 23, 2017 9:02 am, edited 1 time in total.
ImageImageImageImage
B
28
S
9
G
7
Posts: 229
Reputation: 5,518

Post » Mon May 01, 2017 1:29 am

The in-built control options for physics objects will do the job (like friction, mass, etc) but if it needs to be more aggressive then you will need to measure the current vector and velocity of your object, and apply a negative force.

You should be able to get a good slow-down effect though just my messing around with the basic settings for your object :)

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474

Post » Mon May 01, 2017 2:46 pm

SoldjahBoy wrote:The in-built control options for physics objects will do the job (like friction, mass, etc) but if it needs to be more aggressive then you will need to measure the current vector and velocity of your object, and apply a negative force.

You should be able to get a good slow-down effect though just my messing around with the basic settings for your object :)

~Sol

I tried them and it linear damping did the job.
Thanks!
ImageImageImageImage
B
28
S
9
G
7
Posts: 229
Reputation: 5,518


Return to How do I....?

Who is online

Users browsing this forum: eochranek, fearfulelephants and 20 guests