Answers for "void Jump() { if (isGrounded) { rb.velocity = new Vector3(rb.velocity.x, 0, rb.velocity.z); rb.AddForce(transform.up * jumpForce, ForceMode.Impulse); } }"

0

void Jump() { if (isGrounded) { rb.velocity = new Vector3(rb.velocity.x, 0, rb.velocity.z); rb.AddForce(transform.up * jumpForce, ForceMode.Impulse); } }

void Jump()
     { 
         if (isGrounded)
        {
            rb.velocity = new Vector3(rb.velocity.x, 0, rb.velocity.z);
            rb.AddForce(transform.up * jumpForce, ForceMode.Impulse);
        }
     }
Posted by: Guest on May-30-2021

Browse Popular Code Answers by Language