内容纲要

左手定则大拇指对着要旋转的轴正方向

绘制射线

void Start () {
        dir = GetComponent<LineRenderer>();
    }

    // Update is called once per frame
    void Update () {
        Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
        Debug.DrawRay(ray.origin, ray.direction * 10);
    }

设置射线材质调整长短

场景搭建,绘制辅助瞄准线插图场景搭建,绘制辅助瞄准线插图(1)

1 对 “场景搭建,绘制辅助瞄准线”的想法;

  1. Pingback: viagra online

发表评论