オイラー角をクォータニオンにして返す Quaternion.Euler()
クォータニオンをオイラー角にして返す Quaternion.eulerAngles()
相対的に回転する
transform.Rotate(Vector3.right * Time.deltaTime);
絶対的な回転座標を代入
Transform.rotation = rot;←クォータニオン
オブジェクトが向いている方向 Transform.forward
右を向く transform.forward = Vector3.right;
targetの方を向く transform.LookAt(target);
スムーズに回転する Quaternion.Slerp(from.rotation, to.rotation, Time.time * speed);
最終更新:2015年05月24日 17:49