So I want to instantiate a prebab at position (-78,1,65) with rotation (0,180,0).
I am using `Instantiate(arrowPrefab, transform.position, transform.rotation);`
How can I legally substitute these values into a C# script?
So I want to instantiate a prebab at position (-78,1,65) with rotation (0,180,0).
I am using `Instantiate(arrowPrefab, transform.position, transform.rotation);`
How can I legally substitute these values into a C# script?
Like so:
Instantiate(arrowPrefab, new Vector3(-78, 1, 65), Quaternion.Euler(0, 180, 0));
ok, I want something similar and tried to adapt this.
I want the instantiate prefabs translation but no rotation at all. When I toss a grenade it rolls so when it explodes and leaves the prefab decal of scorched earth, the decal I want where the grenade blew up but not it’s rotation as it leaves the decal tilted all which way but flat