So I have a rocket and I need to stop it slowly when it overlaping another object. I tried to do - " Every tick rocket.speed-1 " but as you may guess Its not working.
Increase deceleration when overlapping?
or
every tick: rocket is overlapping X -> set rocket speed = lerp(rocket.speed, 0, x)
where the closer x is to 1 the faster it will slow down.
Develop games in your browser. Powerful, performant & highly capable.
Thanks) already did it with - every tick / rocket.car.speed-10