ScratchData LogoScratchData
Back to Chrome_Cat's profile

Efficient 2D Ball Physics

CHChrome_Cat•Created September 16, 2021
Efficient 2D Ball Physics
281
225
4277 views
View on Scratch

Instructions

I made a simple 2D physics engine, which supports interactions between a dynamic circle and static aabb objects. I made it to be as simple as possible so that it could be easily extended. Click green flag to randomly generate new rectangles

Description

This is similar to griffpatch's impulse 2D and that's because we used the same tutorial by Randy Gaul. However I've purposefully reduced the complexity since I don't need the extra features for my games. I implemented friction in a hacky way so i'll need to fix that soon. If you want to turn it off set the friction coefficient (μ) to 0. ---------------------- updates --------------- 10/07 - Fixed the collision system to support stadium-AABB collisions eliminates the possibility for the ball passing through walls at high speeds.

Project Details

Project ID571068231
CreatedSeptember 16, 2021
Last ModifiedJanuary 5, 2023
SharedSeptember 16, 2021
Visibilityvisible
CommentsAllowed