- Home /
Question by
NathoSteveo · Jan 15, 2021 at 02:05 PM ·
jumpjumpingcharacter controller
How to limit Jump Air Control (air surfing)
As you can see in this video the Player can jump off the tree stump and while in air turn around and land straight back on it. I know this is caused by moving in the player's forward direction, but how can I implement ballistic style jumping with some air control?
Comment
Answer by MuradD · May 05, 2021 at 11:56 PM
you can use a variable bool IsGrounded = true;
then raycast from your players pivot point downwards (a Short ray) and if it doesnt hit something
IsGrounded = false .. if it hits something IsGrounded = true
then according to that limit your controls or do whatever you want when !IsGrounded