Tilemap Collisions
Asked Answered
D

1

0

I am working for my first time with collisions with tile maps. I have some data that my tile provides to my character when colliding. however the issue seems to be that when my bodies only 25% collide I get no data. I understand I'm mostly on another tile at that point. How can I make it so that if these two areas are overlapping even just a little that data can be passed on? I don't even need it 100% perfect, but I need it to be activated by no more then 10% of the area colliding with tiles.

Thanks!

Discipline answered 31/10, 2023 at 3:31 Comment(0)
M
0

Put a raycast and use it to get the tile it's currently colliding with. You can extract any data you need from the collision data.

Mimetic answered 1/11, 2023 at 0:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.