transform.RotateAround(Vector3 point, Vector3 axis, float angle);
pointは、中心の座標。
axisは、回転の軸。
angleは、回転させる角度。
pointは、中心の座標。
axisは、回転の軸。
angleは、回転させる角度。
transform.RotateAround(X.transform.position, Vector3.up, Y*Time.deltatime); // Vector3.upは、Vector3(0, 1, 0) と同じ意味
コメントをかく