Quantcast
Viewing latest article 8
Browse Latest Browse All 50

Instantiate won't spawn at certain rotation

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 latest article 8
Browse Latest Browse All 50

Trending Articles