Here is a template that shows you how to get a character’s feet to conform to a ground plane.
It is not processor intensive, you can reduce the number of ticks on the three ray sensors for faster performance, or increase for smoother appearance.
I got tired of seeing so many great games with a flat floor. Now you can have a nice rough ground, mountains, valleys rocks etc…
The template uses three rays which look for the ground and set the guide bones at the height where the rays hit the ground.
In the test use WAD to move. Press shift to try out the walk animation.
Thanks for checking it out. There’s not much eye candy, it’s just intended for game developers to be able to take apart and have a go at implementing in their own character systems. It’s quite easy to plug in…
If you use it you ought to remove the (print) functions and ditch the part about placing the test box. That part is just there to show that it has been implemented correctly.