Hi all,
I want to launch a ball with the direction where is the mouse position. Any ideas?
if(Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), rayHit))
only returns true if it hit a collider. So make sure you hit a object with a collider
also in fixedUpdate you should use fixedDeltaTime