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 ...

Get Unity Android Game Development by Example Beginner's Guide 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.