I can dash to the four directions relative to the camera, but only horizontally and can't quite get the verticality right. I want to be able to dash upwards or downwards at an angle.
This is the code for the dash right now:
velocity = dash_direction * DASH_SPEED
dash_direction = dash_direction.normalized()
velocity = velocity.rotated(Vector3(0,1,0), rotation.y)
velocity = move_and_slide(velocity, Vector3.UP)