I’m trying to create a gliding effect with my character when the ctrl button is pressed (and jumping), but so far I’m having no success
My current attempt is this:
function Update() {
if (Input.GetButton ("Fire1")) {
Debug.Log("Glide");
rigidbody.AddForce (0,10,0);
}
I did try manipulating gravity and while it did work it heavily affected the actual jump, which looked unrealistic. I think adding an upward force would look more realistic and cause less problems
If anyone could help me out this would be really appreciated