Learning Unity: Roll A Ball

Learning Unity: Roll A Ball

15 November 2019 Uncategorized 0

So Recently I have started to get into learning Unity, one of the ways I have done this is by looking at one of the tutorials on Unity Learn. During the tutorial I learned diffrent lessons, but was able to due to tutorial easily with only few issues.

This is a screenshot taken of the whole Roll a Ball project finished in Unity

Here is a screen shoot of the player in Unity

Here are the components I used to make the player.

Here is the components for the pick ups in the game. I Had some trouble in enabling them to be picked up, due to the tutorial being a little out of date, however with some tweaking I was able to get them to be picked up.

Notes for Unity and what I learned during the tutorial.

  • If the code looks right but isn’t working, then check for redundant brackets in and outside the code. 
  • If object is falling through the floor, then you need to enable is trigger.
  • Changing the code from other.gameObject.CompareTag to other.gameObject.tagMake sure not to put the wrong scene into a build

What could I do with this tutorial in the future to change it?

  • Make a hole in the scene and so the ball can drop through below.
  • Change the physics and see how the object reacts.
  • Expand the tutorial and turn it into a full game with diffrent mechanics such as a few ramps and have it change polarity with you still able to control it through a glass cealing .
  • Make it work with VR by having the controller control how the board moves.

Leave a Reply

Your email address will not be published. Required fields are marked *