コード例 #1
0
    public void LookAtMouse()
    {
        RaycastHit hit;
        Ray        ray = Camera.main.ScreenPointToRay(Input.mousePosition);

        if (Physics.Raycast(ray, out hit, 1000))
        {
            controller.LookAt(hit.point);
        }
    }