facebook twitter hatena line email

Unity/Csharp/位置

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

移動: 案内検索

中間位置

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

3dの回転

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

方向

2つは同じ意味

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