Best way to slow actor to a stop
Unept
Member Posts: 20
My game involves actors being shot from one location, bouncing off the edge of the screen, then slowing to a stop, similar to a ball on a pool table. While I have found a few ways to do this, my methods all seem like hacks.
Method 1: Initial velocity = 400, drag = 140. This method was simple to figure out, but I sometimes find that the actors appear stopped but are jiggling slightly, which won't do.
Method 2: Initial velocity = 400, then interpolate Max Speed to 0 after x seconds. This method works ok, but gives me unnatural effects when bouncing of other moving actors.
I've also tried Accelerate, but don't like the actual accelerating motion at the start since the actors are being fired from some sort of cannon.
I assume there are a few very simple solutions hiding in the forums, but my searches so far have failed me. Any help would be FRAWESOME.
Thanks,
Adam (Unept)
Method 1: Initial velocity = 400, drag = 140. This method was simple to figure out, but I sometimes find that the actors appear stopped but are jiggling slightly, which won't do.
Method 2: Initial velocity = 400, then interpolate Max Speed to 0 after x seconds. This method works ok, but gives me unnatural effects when bouncing of other moving actors.
I've also tried Accelerate, but don't like the actual accelerating motion at the start since the actors are being fired from some sort of cannon.
I assume there are a few very simple solutions hiding in the forums, but my searches so far have failed me. Any help would be FRAWESOME.
Thanks,
Adam (Unept)
Comments
@tshirt, Your method sure helped. I think I was using a "hack" version of something that I saw in one of your vids, but adding this step to it works great.
I'll keep testing, thanks guys!
Unept