trying to pick the object using a ray