Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
320 B
2
Indexable
Never
    public void GenerateGridCursorPosition()
    {
        Vector3 pointToMoveTowards;
        Ray clickRay = Camera.main.ScreenPointToRay(Input.mousePosition);
        if (Physics.Raycast(clickRay, out clickHit))                        
        {
            pointToMoveTowards = clickHit.point;
        }
    }