// Update is called once per frame void Update() { if (holdingBall) { ball.transform.position = playerGamera.transform.position + playerGamera.transform.forward * ballDistance; if (Input.GetMouseButtonDown(0)) { holdingBall = false; ball.ActivateTrail(); ball.GetComponent <Rigidbody> ().useGravity = true; ball.GetComponent <Rigidbody>().AddForce(playerGamera.transform.forward * ballForce); } } }