Show / Hide Table of Contents

Island City Builder

This scene uses a perspective camera, and has full rotational control with both mouse and keyboard. Since the world is so large, we use Exponential Zoom to make zooming rapid even at large distances.

The scene uses Follow Terrain Height to ensure that the target is the same distance above the ground at all times. To optimize we use the Terrain Layer Mask for this feature, so we only check for objects in a specific layer. Because layers are unique to your project, I can't make any custom layers for you. So I've put all the terrain geometry in Unity's built-in Water layer, but in your own project I would recommend creating a new layer and calling it something like Ground or Terrain.

We don't want to count the trees as terrain, since this would cause the camera to jump up and down over all of the trees. Therefore they exist on the default layer - but any layer, other than the one in your Terrain Layer Mask, will do.

Screenshot from the Island City Builder example scene

Controls

Controlled with mouse, keyboard or touch.

Movement

Move the camera with Right Mouse Button or W A S D (or One Finger Touch on mobile devices).

Rotation

Rotate the camera with Middle Mouse Button or by Q and E on the keyboard (or Two Finger Touch on mobile devices).

In this article
Back to top © 2023-2025 Goehler Studios