#so I have a raycast and it returns a hit

1 messages · Page 1 of 1 (latest)

loud rock
#
            }
        }

        
        float x = MovePos.x;
        float z = MovePos.z;
        float y = MovePos.y;

        Vector3 movement = new Vector3(x, y, z);       
        float step = 0.1f;
        
            transform.position = Vector3.MoveTowards(transform.position, movement, step);
          ``` heres the code
#

any help appreciated