A high-performance modifiable gravity engine that could be used for many different things. Has some bugs right now, don't know if I'll fix them. :P Use: https://turbowarp.org/635166085?interpolate&offscreen&limitless&clones=Infinity Using something similar to rays, the square calculates the distance to the next barrier in all four directions. To stop the square from going inside of the ground, the block checks to make sure its velocity is less than the distance to a barrier, and if it is not, it will simply move the block to the limit rather than going past the limit.
Everything was made by me, @ThunderGuy77. I made this project because I was tired of everyone using the same gravity engine. I mean, the engine's nice and all, but it's got some limitations, and it's not the easiest thing to modify. This engine, however, should make everything easier. The main is actually condensed into one sprite, which is pretty nice and makes reusing quite easy. The ground and the clouds are the other sprites but they can be easily removed. Also, I made the code pretty neat so it is easy to understand. Feel free to use but please give credit. (Or not. Whatever.) Version Log 1.5 - Slipperiness + Sliperiness option now included + Hitbox sizes now seperated per axis 1.4 - Wall Jumping + Added wall jumping + Fixed bounciness 1.3 - Directional Gravity + Perfected trigonometry colliders + Scrolling crash fixed 1.2 - Beta Directional Gravity and Performance + Full conversion unfinished + Square rotation (and face :D) 1.1 - Scrolling Added + Engine now one sprite + Movements replaced with global movements + Fixed weird jump bug 1.0 - Initial Release + Working gravity using colliders + Gravity, strength, and hitbox options + Beta bounciness option