When a collision object is colliding with a tilemap, it would be handy to get the tile x,y in the collision response, in addition to this:
DEBUG:SCRIPT:
{ --[[0x111b7da60]]
normal = vmath.vector3(0.74852848052979, -0.66310274600983, 0),
position = vmath.vector3(95.643836975098, 159.35762023926, 0),
other_position = vmath.vector3(0, 0, 0),
own_group = hash: [player],
relative_velocity = vmath.vector3(0, 0, 0),
other_group = hash: [spike],
other_id = hash: [/terrain],
other_mass = 0,
group = hash: [spike],
applied_impulse = 0,
distance = 0.59447586536407,
life_time = 0,
mass = 0
}
This would help creating destructible terrain or to determine whether a tile will harm the player or not.