I have a spawner that spawns a specific object (LaserPrefab). I'm trying to figure out how to use the rotation property to insert my own values. I am not sure how Quaternions really work and what the Quaternion.w actually means.
I have this line written:
Instantiate(LaserPrefab, new Vector3(transform.position.x, Random.Range(LowerBoundary,UpperBoundary), 0), transform.rotation);```
What I want do is to replace `transform.rotation` with my own values of `0`, `0`,`Random.Range(0,359)`. How do I do this?