Jittery actors
simo103
Member, PRO Posts: 1,331
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
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
~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.
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!
~CTM
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.