Best way to slow actor to a stop

UneptUnept Member Posts: 20
edited November -1 in Working with GS (Mac)
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)

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    you can turn up your density to try and reduce the jiggle. That is something I have always had trouble with when using round collision actors for some reason.
  • UneptUnept Member Posts: 20
    @tenrdrmr, Thanks for the advice. I've played with density a bit, but it doesn't seem to stop the jiggle like I would like so far. However, is it possible to change density attributes of an actor in-game? I assume that since it's a physics attribute, we can't change it.

    @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
Sign In or Register to comment.