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

0 favourites
  • 3 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • 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!

  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)