O'Reilly logo

Virtual Reality Blueprints by John Williamson, Charles Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Game props

Our version of the traditional game will be simpler, but it still requires a good bit of dexterity to win. The five-bottle pyramids will be placed when the game is launched and restacked when needed. We will provide the player with five balls that can be picked up and thrown with the Touch controller. And lastly, we'll add a reset button to remove the thrown balls and lay out a new set for the player to throw:

  1. Create an empty GameObject called BottleGame at (0, 0, 0).
  2. Just like we did with the MoleGame, we need to assign a new script to the BottleGame called BottleGameController. This script will instantiate the balls and bottles, and facilitate a reset function.

Our Milk Bottle Toss game (the BottleSmash GameObject) booth is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required