There’s a couple ways I could think of solving this. I don’t think you want to do a “if there is nothing below his feet check” because its possible you have two platforms that are slightly apart from each other which could trigger that code.
- You pick an arbitrary Z location (let’s say 0.0f), if the player is ever below 0.0f then you kill him. This works fine as long as you can guarantee that your platforms will always be above 0.0f.
- You dynamically place trigger volumes below each platform (basically you would generate them just like you generate new floors/tiles), if the player ever enters those volumes, you kill him.
- You set some timer when the player begins falling, if they fall for X seconds you kill them. ← I really don’t like this idea but maybe it works for you.
Out of all those options I think #2 is probably the best/most flexible. #1 is the easiest to implement.
Good luck!