6

Interactions and Mechanics

Now that we have a character with basic locomotion and an environment to work with, let’s take a look at how this character should interact with this environment. Unity allows us to use C# to build logic around GameObjects that the player can interact with. This is the basis of game design and helps tell the story or experience through actual interaction.

You’ll learn more about the specific interactions and mechanics that can be implemented with Unity in this chapter. We will cover:

  • Game loops
  • Mechanics toolbox
  • Interactions within our project
  • Stairs
  • Rings puzzles
  • Tight spaces
  • Interactive volumes
  • Design and implementation

Game loops

Video games have a unique concept called a game loop. As you might be able to guess, ...

Get Unity 3D Game Development 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.