Hi,
Unity noob… this should be a simple one, but I’m buggered if I can get it to work!
I have a capsule shaped gameobject that is representing a projectile.
The mesh in the prefab is rotated 90deg about X, so the capsule appears to point forward/backward along the Z axis.
When I instantiate the capsule with the following, (From the main camera position - the script is on the camera)
var insProjectile = Instantiate(fabProjectile, transform.position, Quaternion.identity);
The capsule shape appears pointing up/down along the Y axis.
I have tried using Quaternion(90,0,0,0), and a few other variations instead of Quaternion.identity but the projectile always appears aligned along the Y axis, not along the Z axis as it is in the prefab.
Any help much appreciated!