TailBit
Member
I have seen the tile collision tutorial with slopes, pretty neat, but I've been trying to figure out how to detect where to end up when you will hit the ceiling, and I have more rectangular collision box..
For the first one, I did manage to figure out that I had to find the room between them on the left side when moving in .. and the height available need to be (height + width -1) .. then it should be possible to use some formulas to figure out the x for that space .. so that one is fine.
But the 2nd one, could be that I have been thinking too much, but do anyone have a suggestion how I should detect collision for the 2nd to avoid checking pixel steps?
For the first one, I did manage to figure out that I had to find the room between them on the left side when moving in .. and the height available need to be (height + width -1) .. then it should be possible to use some formulas to figure out the x for that space .. so that one is fine.
But the 2nd one, could be that I have been thinking too much, but do anyone have a suggestion how I should detect collision for the 2nd to avoid checking pixel steps?
Attachments
-
3.5 KB Views: 6