Bouncy balls

Feature: When a ball drops from mid-air and hits the ground, it bounces back up and down, and up again, diminished by gravity.

We are going to start simply with a new scene that consists of a ground plane and a sphere. Then, we'll add physics to it, a bit at a time, as follows:

  1. Create a new scene by navigating to File | New Scene.
  2. Then, navigate to File | Save Scene As... and name it BallsFromHeaven.
  3. Create a new plane by navigating to GameObject | 3D Object | Plane and reset its position using the Transform component's gear icon | Reset.
  4. Create a new sphere by navigating to GameObject | 3D Object | Sphere and rename it BouncyBall.
  5. Set its Scale to (0.5, 0.5, 0.5) and Position to (0, 5,0) so that it's above the center of the plane.
  6. Drag ...

Get Unity Virtual Reality Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.