Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | genete | |
Old Version | Published before Godot 3 was released. |
I have a TIleMap made according the using tilemaps documentation.
I would like to make my kinematicbody react differently if it collides with some kind of the tiles. For example I would like the kinematic body to bounce if it collides with its head the bottom of one type of tile, and land normally on the top if it collides with its feet. I can detect head and feet collision using the normal of the collision but I don’t know how to detect the type of tile it has collided with, from the get_collider() method.
How can I detect the type of tile collided? Is that possible?
I forgot to add tags to the question. Is it possible to add it later?
EDIT: Oh, yes, just edit the original question.
genete | 2016-04-28 11:26