I’m trying to make a basic movement engine for a rpg game without using the character controller or a rigidbody. The reason I don’t want to use them is because there is no element of gravity in my game (you can’t jump or fall). I am trying to find the best way to get my player (a cube that can move in 8 directions) to stay attached to the ground, (which has sloped areas as well as flat) while moving (without using gravity). What would be the best way to go about this?
I have looked around the web for possible solutions and found that “raycasting” may have been used for this, but I have no idea how I would set that up.
Thanks in advance! (Sorry for all the parenthesis :I )