So I’m making a parkour system for my game.
My own way to do it (Atleast I figured it out myself) is by adding an invisible trigger object and attaching it to the in front of the character. But my problem is that I don’t know how to detect an edge that can be jumped (or vault) over. I’ll add an image (made in Paint :P) that will explain the whole thing.
The black “box” on the left is object that can be jumped over, the red rectangle is the triggerobject and the “human” on the right is the player character.
btw. The edge may be smooth too!
I know that this can be done (mayby) more easily by adding a trigger object to every corner that can be jumped over. I’ll use this way if my “own” way is too complicated.
And yes, I’ll use C#.
Thanks in advance!