Wednesday, October 28, 2020

Unity Tutorial 04


UNITY TUTORIAL 04






For reading week  i continued to practice Unity 3D tutorial and in this tutorial i learned how to spawn animals automatically. We created new custom function telling to do everything what we want to do.in this case to spawn random animals, also to spawn animals on a timer, that methods called InvokeRepeating.


Next we are going to add new component to the prefabs -Box collider, and apply all in  override panel. then check the checking box is trigger. Also we add another component Rigidbody and uncheck "use gravity, it helps to detect a collision in our physics.

To Detect Collision when the animal and food collide they both removed from the game.

Destroy out of Bounds to know the game is over!









CHALLENGE 2


Challenge is very tricky and not as easy as I thought. I spent more time on it to figure out the right coding. Using collision  decisions tutorial I was able to solve some of the problems.



source of image( my own work from Unity Tutorial 04)

 

No comments:

Post a Comment

Reading 11

 Reading 11 This week's task is to design a user testing experience. And I chose H5P website to create Q&A. Answering the questions ...