// Movement Variables public float runSpeed = 8.0f; public float jumpForce = 5.0f; public float wallJumpForce = 5.0f; public float vaultDistance = 2.0f; public float vaultHeight = 1.0f;
public class ParkourController : MonoBehaviour fe parkour script
// Movement if (!isVaulting) rb.velocity = new Vector3(movement.x * runSpeed, rb.velocity.y, movement.z * runSpeed); // Movement Variables public float runSpeed = 8
bool IsWalled() // Raycast to sides RaycastHit hit; if (Physics.Raycast(transform.position, transform.right, out hit, 1.1f) public float jumpForce = 5.0f
void Update() isWalled)) TryWallJump();