1 decade ago by Joncom
According to the .trace documentation:
It returns a piece of information called "tile" which is the "tile for the collision".
But what does that mean?
I would guess that it's the position of the very first tile which triggers a collision response. However, my tests don't seem to suggest this at all.
Does anyone know what it's actually for?
{ collision: { x: false, y: false, slope: false }, pos: { x: 0, y: 0 }, // Resulting object position tile: { x: 0, y: 0 } // Tile for the collision }
It returns a piece of information called "tile" which is the "tile for the collision".
But what does that mean?
I would guess that it's the position of the very first tile which triggers a collision response. However, my tests don't seem to suggest this at all.
Does anyone know what it's actually for?