Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I have been trying to generate a random object on all three axis in different locations. However, Vector3 doesn't accept that many overloads e.g: Vector3 spawnPos = new Vector3(Random.Range(spawnL...
#2: Post edited
How to generate random objects at different locations on x, y, z axis
I have been trying to generate a random object on all three axis in different locations. However, Vector3 doesn't accept that many overloads e.g: `Vector3 spawnPos = new Vector3(Random.Range(spawnLimitXLeft, spawnLimitXRight), spawnPosY, 0);` I want a spawn limit range for y and z similar to x in the above example but I dont know how to impliment it. The results being that I can generate an object within a positive and negative range on y and z as well?
#1: Initial revision
How to generate random objects at different locations on x, y, z axis
I have been trying to generate a random object on all three axis in different locations. However, Vector3 doesn't accept that many overloads e.g: `Vector3 spawnPos = new Vector3(Random.Range(spawnLimitXLeft, spawnLimitXRight), spawnPosY, 0);` I want a spawn limit range for y and z similar to x in the above example but I dont know how to impliment it. The results being that I can generate an object within a positive and negative range on y and z as well?