facebook twitter hatena line email

Unity/Csharp/位置

提供: 初心者エンジニアの簡易メモ
2022年7月1日 (金) 11:08時点におけるAdmin (トーク | 投稿記録)による版 (方向)

移動: 案内検索

中間位置

Vector3 center = Vector3.Lerp(fromObj, toObj, 0.5f);

3dの回転

Unity/3d/回転 [ショートカット]

方向

2つは同じ意味

new Vector3(0f, 0f, 0f)
Vector3.one
new Vector3(1f, 1f, 1f)
Vector3.zero
new Vector3(2f, 2f, 2f)
Vector3.one * 2;