How do I detect distance between player and ground x units in front of player

Great, thanks again for help. I think what I’ll do is instead of having raycasts check every tick is implement check into jump. So, when player chooses to jump, check will be made, and animation and appropriate movement will be determined right then and there. Also, I hadn’t considered this before, but I’ll also have to add functionality to determine how far player would land from origin of jump depending on how fast they are traveling. I think I can figure that out, though.

1 Like