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.
Activity for simonJNâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #287069 |
Thank you for your response.
I didn't understand the syntax of creating the other axis. I didn't realise that you need to add Random.Range() again to specify them, as in the original example y, z were just added to the same expression.
Thank you for explaining that!
(more) |
— | about 2 years ago |
Edit | Post #287069 | Initial revision | — | about 2 years ago |
Question | — |
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 ... (more) |
— | about 2 years ago |