Book Image

Blender Game Engine: Beginner's Guide

Book Image

Blender Game Engine: Beginner's Guide

Overview of this book

Blender Game Engine is the part of the Blender 3D editor used to create actual 3D video games. It's the ideal entry level game development environment because you don't even need to learn to program. Create a complete game using Bender's innovative logic bricks."Blender Game Engine: Beginner's Guide" is the ideal introduction to game development. Using only logic bricks, the reader will create a complete game in Blender. By the end of the book the reader will be able to use their skills to create their own 3D games.
Table of Contents (11 chapters)
10
Index

Time for action — rolling objects

Let's test what would happen if we met with a detachment of ice. The pieces would roll into the water and dive deep into the ocean. Reflected in this sentence, there are too many laws of physics. We will split the iceberg and will be left with only the pieces of iceberg rolling down a slope. Let's see how the game engine calculates this movement.

  1. Select an iceberg, choose Object, and duplicate the link six times to create other objects. Scale and rotate them, as shown in the following screenshot:
    Time for action — rolling objects
  2. Select each one of little icebergs and repeat this operation: select Dynamic in the Physics Properties tab, as follows:
    Time for action — rolling objects
  3. Activate the Collision Bounds option and set it to Sphere, in each iceberg:
    Time for action — rolling objects

    Tip

    The radius (marked with a circle of dots) of influence in Attributes is 0.3 in this case. You must change it to fit your version of the scaled iceberg!

  4. Press P to see the result. If you don't like it, change Velocity to Maximum, and try it again. Changing...