Deceleration
keekee312
Member Posts: 91
Hi, I tried to make actors slow down when a button is pressed but it does nothing and I don't know why. I put a boolean when the button is clicked => For 5sec : DECELERATE is true
and in each actor : when DECELERATE is true... (and now i tried to change velocity, drag, apply a max speed etc but nothing works)
Thank you
and in each actor : when DECELERATE is true... (and now i tried to change velocity, drag, apply a max speed etc but nothing works)
Thank you
Comments
Never tried this but it's worth a shot.
So...when decelerate = false >>> accelerate (is on) and drag (is small)
otherwise >>> accelerate (is off) and DRAG interpolates to self.dragMax over 5 sec.
Make sense?
@scitunes : Thanks I'll maybe try this
Thanks for your quick answers
When DECELERATE = false
=> accelerate : 300
otherwise : accelerate : 50
After 5 sec = decelerate = false