您当前的位置: 首页 >  unity

程序员正茂

暂无认证

  • 1浏览

    0关注

    283博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Unity中LineRenderer修改朝向face

程序员正茂 发布时间:2021-12-02 10:35:17 ,浏览量:1

1.LineRenderer默认是朝向相机的,需要修改朝向Z轴模式

 2.修改LineRenderer所在物体的Z轴

Vector3 direct = ptNodes[0] - MyPlanet.ins.transform.position;
transform.rotation = Quaternion.LookRotation(-direct, MyPlanet.ins.transform.up);

关注
打赏
1660743125
查看更多评论
立即登录/注册

微信扫码登录

0.1122s