[過去ログ] 【ゲームエンジン】Unityなんでも質問スレpart4 (1002レス)
1-

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
595
(2): 2021/07/07(水)11:35 ID:E2/eXyJK(3/3) AAS
前にオイラー角について教えて頂いたものです。

void Update()
{
//get centerCamera_eulerAngles
Vector3 centerCamera_eulerAngles = centerCamera.transform.eulerAngles;

// Set the debugger
// Get Text component from object
Text debug_text = debuggerText.GetComponent<Text>();
// Swap the text
debug_text.text = "Cam_Ang" + centerCamera_eulerAngles;
}

とUI上にカメラアングルを表示しようとしているのですが、
0,23.0
のようにy軸回りの角度しか表示されません。
centerCamera.transform.eulerAngles;
ってy軸の角度しか取得しないんでしょうか?
1-
あと 407 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ

ぬこの手 ぬこTOP 0.013s