Hello everybody,
I would like to build a linetrace which shoud be directed downwards in front of my character, so that whenever my character is in front of a slope he adds its height to his current position.
In the end I would like to achieve that my charakter can go up stairs.
I don’t know if that’s the right way to handle stairs. For someone starting out, it’s best to use a stair mesh but the character is actually walking up a ramp. The problem with that is the feet don’t always land on the steps as they should.
To fix that, you want to use IK. Along with IK, you shoot traces out of the bottom of the character’s feet. It is very complicated so if you aren’t very experienced, I suggest you deal with the feet not lining up with the stairs and work on other parts of your project. You can always come back.
If you want to do the IK for stairs now, you should check out a tutorial. I found two but neither finishes with a perfect example. Still, they will have lots of info to get you on your way.
Thank you very much for your quick response.
I’ll try it tomorrow. In the end it is for VR Template and custom gravity. Everytime I move I want to check for a collision object in front of me to then apply the z offset to my character.