Some variations on ball throwing

I didn’t like the way I have to look up to shoot. Can’t see anything but the sky. So I came up with these variations. These shoot at more of a 45 degree angle.

body.velocity = camera.transform.rotation * ( (Vector3.forward * ballSpeed)
            + (Vector3.up * ballSpeed));
// or...
body.velocity = (Camera.main.transform.forward * ballSpeed) + (Camera.main.transform.up * ballSpeed);

Privacy & Terms