ScratchData LogoScratchData
Back to MarsMuffin's profile

Fast C-C Collision Detection

MAMarsMuffin•Created February 5, 2024
Fast C-C Collision Detection
1
1
13 views
View on Scratch

Instructions

✨✨SCROLLING COLLISION DETECTION✨✨ ➡️Scrolling! Collision detection is handled separately from the visuals so that they can be done anywhere! ❤️Shoot yourself in the foot, if you don't know what you are doing! No explenation or intuitive names! ⚡️Powerful! 100 objects runs at a smooth 30 FPS (much faster than using Scratch "touching" checks), by dong a simple AABB check and not using the square root, as it isn't needed for simple comparison operations. No clones are being used. If you use TurboWarp you can add ~1000 circles without lags. ✏️Customizable! You can add more functionality to this engine easily, and check collisions from anywhere! Atleast if you understand the engine and code the extendibility yourself, and it works after your changes. Backpack to use in your project. Credit me like so: Collision Detection by @NotReallyUsableInNormalCodeBecauseItWasDestroyedBySeekingTooMuchPerformanceOutOfSomethingSimpleThatAnyoneCanCreate Wow, it got quite a bit of performance! It can be even faster using a Quad-Tree or a Grid, but those structures have majore downsides and aren't viable on scratch. If you want to learn something where these structures are viable transition to C++ or Rust. This is scratch and it is just for the funzies, nothing serious. I hope you learned something, nothing special. Also, constructive criticism is good, don't always say it isn't implemented to keep it simple. There will always be a way to do it faster.

Project Details

Project ID961660391
CreatedFebruary 5, 2024
Last ModifiedFebruary 5, 2024
SharedFebruary 5, 2024
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root