Unity中绕任意轴任意角度旋转向量

游戏中有一需求,就是一个矩形或者Cube绕着某一点旋转任意角度,如今给出下面算法。算法 public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) { Vector3 point = Quaternion.AngleAxis(angle, axi
相关文章
相关标签/搜索