How do I make an object collide with an object?

To be more specific, how do I make an object be able to stand on, or hit an object? I’ve tried checking if the object is above, next to, or below, and then stopping the object from going through it, but I couldn’t get it working. I’ve also tried using two variables called Floor and Ceiling, and letting the objects themselves do the work of setting it (basically checking if it’s above or below the object). It works for the most part, but when I tried putting one above another, it ended up making the object fall through both. Any way to do it without bugs?

12 Likes

You could check out @Spy_Guy_96’s templates on HS. They have both basic collision for platforms, and tiles that interact (“collide”) with each other.

5 Likes

Or you could use my rotational collision code
If you need something more advanced
And if you need 3D collision I can link my wip Minecraft

4 Likes

Yeah I need help too on the same thing.

1 Like