[過去ログ]
【3Dゲームエンジン】Unity質問スレッド32 (1002レス)
【3Dゲームエンジン】Unity質問スレッド32 http://mevius.5ch.net/test/read.cgi/gamedev/1509307535/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
977: 名前は開発中のものです。 [sage] 2017/12/20(水) 00:39:41.23 ID:TUVA4DF6 ?Quaternion.FromToRotationを使用する方法1 transform.rotation = Quaternion.FromToRotation (Vector3.right, direction); ?Quaternion.FromToRotationを使用する方法2 transform.rotation = transform.rotation * Quaternion.FromToRotation (transform.right, direction); ?Vector3.Angleを使用する方法1 transform.rotation = Quaternion.Euler(0, 0, Mathf.Sign(Vector3.Dot(Vector3.forward, Vector3.Cross(Vector3.right, direction))) *Vector3.Angle(Vector3.right, direction)); ?Vector3.Angleを使用する方法2 transform.rotation = transform.rotation * Quaternion.Euler(0, 0, Mathf.Sign(Vector3.Dot(transform.forward, Vector3.Cross(transform.right, direction))) *Vector3.Angle(transform.right, direction)); http://mevius.5ch.net/test/read.cgi/gamedev/1509307535/977
980: 名前は開発中のものです。 [sage] 2017/12/20(水) 08:42:36.26 ID:XTZUI7pU 969です >>976-979 詳しく解説ありがとうございました! やっぱり、角度から行こうとすると結構面倒ですね〜 http://mevius.5ch.net/test/read.cgi/gamedev/1509307535/980
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.032s