Jittery actors

simo103simo103 Member, PRO Posts: 1,331
edited November -1 in Working with GS (Mac)
I'm sure I've seen this covered before but have spent an hour searching forums and looking thru tutorials etc with no luck.

Doing an explosion/blocks type game so I need blocks to collide with the ground and each other a bit and then settle down ... and stop moving! I've tried variations of friction and restitution and density etc but they still keep on bouncing around.

Any ideas on keeping a good level of collision but then having complete motionless? Tried timed based changes also .. no luck.

thanks

Comments

  • VoidedSkyVoidedSky Member Posts: 1,095
    Hey, You need to have restitution to be set to ZERO on ALL actors that the blocks collide with. This should work.
    ~CTM
    EDIT: I think you can set restitution to like .1 on the actors, then they will bounce a little, then stop, but I'm not on my mac now, so I can't be sure.
  • simo103simo103 Member, PRO Posts: 1,331
    thanks CTM .. I tried all zero and they still moved BUT that got me thinking that it might be caused by something else rather than the block actors' physics.

    I wrapped some of the explosion behaviors in a timer and I got it to stop the jitters. So with a little tinkering between the restitution and timing I believe I'll be able to get it perfect.

    thanks again for answering .. not a direct solution but a key to helping me move on!
  • VoidedSkyVoidedSky Member Posts: 1,095
    Did you set the restitution to zero with like the ground actor also?
    ~CTM
  • simo103simo103 Member, PRO Posts: 1,331
    yeah all of them .. but there was a change velocity behavior caused by the blast that just wasn't dying off so even though the blocks were down and restitution was zero they were still trying to move a bit thus the jittering.

    I put the restitution back to 0.5 but wrapped the change velocity in a 3 second timer triggered to start when the blast occurs. That allowed the expected blast and actors to bounce around but to settle down still once they were done.
Sign In or Register to comment.