16/06/14 01:04:46.37 VvNgU/xP.net
>>6
2Dならこんな風に真上からの回転を作る
// 生成する座標と向けるターゲットの座標
Vector3 pos = new Vector3(x, y, 0);
Vector3 target = new Vector3(x, y, 0);
// Y方向から指定座標までの回転を作成
Quaternion rotation = Quaternion.FromToRotation(Vector3.up, (target - pos));
// 位置と回転を指定して生成
Instantiate(prefab, pos, rotation);