O'Reilly logo

Unity Android Game Development by Example Beginner's Guide by Thomas Finnegan

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

Time for action – creating planks

Each of the blocks we will be creating will be largely similar:

  1. First, we will create the plank of wood. To do this, we need another cube. Rename it Plank_Wood.
  2. Set the plank's Scale to 2 for the X and Y axes, and 0.25 for the Z axis. Its scale on the y and z axis define its size as seen by the player. The scale on the x axis makes sure that it will be hit by other physics objects in the scene.
  3. Next, create a new material using the plank_wood texture and apply it to the cube.
  4. To convert this new wood plank into a physics object, add a Rigidbody component. Make sure your plank is selected, go to the menu bar of Unity and click on Component, followed by Physics; finally, click on Rigidbody.
  5. We need to keep the plank ...

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