void AttemptGrab() { RaycastHit hit; if (Physics.Raycast(fpsCam.transform.position, fpsCam.transform.forward, out hit, grabDistance)) { target = hit.transform.GetComponent <MoveableObject>(); if (target != null) { holdingObject = target.Grab(fpsCam); } } }