Posts

Showing posts from January, 2018

Week 1 Practical

In my practical during Week 1, I was introduced to a series of mathematical formulas and the basics of vectors and distance.  I was asked to create a scene which spawned objects after a certain distance on spacebar down. Within a for-loop, I generated a random Vector and destroyed it if the distance was smaller than a user defined value. Two methods I generated for this were a RandomVector (to generate a random position), and a Distance float (which checked the distance between two vectors). This clip below shows the working project. If you look in the Inspector, you will see Missing Game Objects. These are the objects which spawned within the distance, and so they were destroyed.