Roll-a-ball

Table of Contents

Setting up the Game

Moving the Player

Moving the Camera

Setting up the Play Area

Creating Collectable Objects

Drag greenbox to keep parallel with XZ plane

Collecting the Pick Up Objects

Tags are case sensitive.

There are two types of collider, static and dynamic.

Without Rigidbody, Objects are considered as static. Static objects are cached. But our Pick ups are rotating, so every frame, the cache will be updated. It's inefficient. So we need to add Rigidbody to our Pick Ups to prevent from caching.

If Is Kinematic checked, Will not react to physics.

Displaying the Score and Text

All UI elements must be the child of a canvas object to behave correctly.

Building the Game