Discord
Login
Community
DARK THEME

What is a AABB collision?

TwiceUponATime told me that it would be good to use it. Can someone give me an example? Thank you.

This is a collision detection method in which objects are set parallel to the coordinate system axes. This simplifies calculations - you only need to check a few conditions - and all of them must be met. This is the fastest collision detection method. The easiest but it only works for rectangles (in 2D) or boxes (in 3D).

https://microstudio.dev/i/HomineLudens/aabb/

Oh, that is cool, but can you use AABB collisions without boxes and rectangles? Because that is kind of sad. :(

@Tiberius the rectangles is just a way to check the collsion, there's comments in the code, here an example

https://microstudio.io/i/warrior/collide_example/

and also, have a tultorial in the tultorial section teaching how to do many things here, in your last post you sad "i wanna do a sword", if you go to explore section and go down, will appear some tultorials and one of them is the "strike/interact", there's a code to do a sword and collision

:embed https://microstudio.io/warrior/collide_example/

Oh man thank you. :) So you the rectangles are just the indicator. Thank you. :)

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community