Discuss Scratch

Captain_Karsten
Scratcher
24 posts

Jittering in Ball Physics for Suika Game, how to counteract?

In my Suika game prototype, the fruits seem to be jittering back and forth, which is not ideal. Can someone please explain why this happens and a script to get rid of it? I have left it on my alt account so not to many view this unfinished project. https://scratch.mit.edu/projects/1443643045/
Thanks in advance!
UncappedCyanMarker
Scratcher
100+ posts

Jittering in Ball Physics for Suika Game, how to counteract?

jittering?
Captain_Karsten
Scratcher
24 posts

Jittering in Ball Physics for Suika Game, how to counteract?

UncappedCyanMarker wrote:

jittering?
That doesn't help.
dem_bot
Scratcher
1000+ posts

Jittering in Ball Physics for Suika Game, how to counteract?

This kind of thing is usually due to float roundoff error. Most games get around this by simply not moving the object if its velocity is too low.

Powered by DjangoBB