How to detect character fall?

I’m trying Endless “SideScroller Runner” game in which “Floor” Automatically Spawn and there are also some gaps between floors.

I can do this via getting “Z-Axis Velocity Vector”. But since it is side scroller game. All I’m doing is just jumping and running.
Some tiles are in centre position, some above centre, some below centre. So I can’t do this with Velocity Vector.
I want to die my player when, you can say, there is nothing below his feet.

How can I achieve this via Blueprinting?

Here is what I did in starting to check Z Velocity Vector:

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.

  1. 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.
  2. 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.
  3. 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!

Thank You. I like option 2. But I think I have to place trigger “Right Hand Side” of tiles, since it’s side scroller game, as shown in attachment.
Anyway I got the Idea. :slight_smile: