Unexplained Pulsing/jerking Of Physics Object That Has Force Applied To It.

Hi all…

One of my game elements involves a ‘projectile’ being fired… It kinda bounces around the screen for a while and is either ‘crashed into’ or ‘avoided’, no biggy, but no matter what I try, I can’t get it to move smoothly… I’m using x/yForce to ‘launch’ the object and it sort of rhythmically jerks… It’s not a sporadic loss of frames or an issue with performance, like processor intrusion. It seems to pulse or jerk every second or so.

I thought at first that it might be because I had linear damping applied and the object was trying to keep up with the iterations, so I switched it off… No difference! The object is ‘bullet’ and is not allowed to sleep - I’ve tried with and without these variables but no change there either. Also tried fiddling with “physics.setVelocityIterations( )”… Everything else seems to be moving in a nice linear fashion within the scene so it’s a bit of a mystery.

I’ll really owe you one if you can help with this, I’ve been at it for hours. By the way, it’s ‘top down’ so global physics is (0,0) - Don’t know if this matters?

M

Hi there,

That does sound strange.  It would be helpful if you could post a minimal test case that exhibits the behavior you’re referring to, and then we might be able to hone in on the problem and solve it.

  • Andrew

Hi there,

That does sound strange.  It would be helpful if you could post a minimal test case that exhibits the behavior you’re referring to, and then we might be able to hone in on the problem and solve it.

  • Andrew