Kicking at 45° direction

I want to kick a ball forward with a 45° elevation, my best thought is to use Vector3, however I cannot figure out how to make a Vector3 that does it, the best i´ve been able to do so far is to kick it with a semi-circle elevation, but my intention is to kick it like this…

Is there a way to make this kind of vector? Or am I totally wrong using Vector3?

You can use the Rigidbody.useGravity property to disable gravity. That will make the ball fly like it would in space. Later on you can enable the gravity for the ball if you want.

void TryHitBall()
     {
         if (power > 0) 
         {
             Rigidbody rb = GetComponent<Rigidbody>();
             rb.useGravity = false;
             rb.velocity = StrikeVec() * power;
         }
     }

For example, if the net has a collider on it, you can use that to reactivate the gravity for the ball.

void OnCollisionEnter(Collision collision)
{
	if(collision.gameObject.name == "Goal")
	{
		GetComponent<Rigidbody>().useGravity = true;
	}
}

One more thing. If you want to use the Rigidbody more than once, it is a good idea to create a global variable of it, and assign it on the start. This way you will get rid of using GetComponent every time you want to do something with the ball, which will make it more performance-efficient. Put a Rigidbody variable next to the public power float, and assign it on Start().

Rigidbody rb;

void Start()
{
	rb = GetComponent<Rigidbody>();
}