ScratchData LogoScratchData
Back to superfireninja9's profile

Ball Physics (Verlet Integration)

SUsuperfireninja9•Created August 20, 2022
Ball Physics (Verlet Integration)
22
14
340 views
View on Scratch

Instructions

The project will run faster and smoother in TurboWarp! https://turbowarp.org/723340309/fullscreen?hqpen&interpolate Just sat down and decided to make this little project, demonstrating the use of Verlet Integration. Made in less than two hours! FEATURES: - Verlet integration - Accurate collisions - Inertia based on mass IMPORTANT NOTE: If you see the balls sinking into the ground or into each other, this is not a bug! This is just an attempt to lower the processing power and increase performance! Run the project in TurboWarp and the project will automatically fix this and you will get a more realistic simulation! https://turbowarp.org/723340309/fullscreen?hqpen&interpolate Verlet Integration is basically an alternative to actually storing the velocities of each object to move them. Instead, you just store the previous position, and then you can assume the speed it was traveling at to move it. This is very useful because you can run collisions like this just by moving them away from each other when they collide, and it will automatically give them a realistic velocity!

Project Details

Project ID723340309
CreatedAugust 20, 2022
Last ModifiedSeptember 14, 2022
SharedAugust 20, 2022
Visibilityvisible
CommentsAllowed