Quantcast
Channel: Latest Questions by Shiro_Rin
Viewing all articles
Browse latest Browse all 50

Instantiate won't spawn at certain rotation

$
0
0
I am using the code public Vector3 SpawnPoint; public Quaternion SpawnRotaion; public GameObject ObjectSpawning; Instantiate(ObjectSpawning, SpawnPoint, SpawnRotaion); Now it works good except the problem is the rotation never goes to 270 when I set it. The Quaternion looks like X=0 Y=270 Z=0 W=0 Now I thought this would spawn an object at 270 degrees turned (or -90 ) however, it only will spawn it at 180 degrees turned. Why is that ?

Viewing all articles
Browse latest Browse all 50

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>