Unity 在2D中实现LookAt,跟随鼠标转动
Vector3 v = (target.position - transform.position).normalized;
transform.right = v;
posted on 2023-01-17 10:01 zqiang0803 阅读(167) 评论(0) 编辑 收藏 举报
Vector3 v = (target.position - transform.position).normalized;
transform.right = v;
posted on 2023-01-17 10:01 zqiang0803 阅读(167) 评论(0) 编辑 收藏 举报