Play on itch: https://twobitcode.itch.io/07-unity-3d-terrain-ai
A project with step-by-step scenes illustrating how to construct a 3D game, including:
- 🏗️ Scene Modelling: Using Terrain Tools and ProGrids for creating and aligning structures.
- 🎮 Player Control: Implementing CharacterController and NavMeshAgent for smooth navigation.
- 🤖 Enemy AI: Adding intelligent enemy behavior.
- 🎯 Target Visualization: Using gizmos for better debugging and visualization.
Text explanations are available in the 08 folder.
This project expands the 3-e complete building scene by adding a new bedroom and custom features:
- 🛏️ Built a bedroom in the 3-e complete building scene using ProGrids for precise alignment.
- Included:
- A bed, custom-built using Unity's ProBuilder tool.
- A desk and chair, also designed with ProBuilder.
- A lamp prefab from the Roman Furniture Pack for decoration and lighting.
- 🪑 Used prefabs from the Roman Furniture Pack to enhance the room's appearance and add functional elements.
- 🚪 Constructed a corridor to connect the new bedroom to the main building.
- 💡 Added Point Lights to illuminate the room effectively, including the lamp as a light source.
-
🏃♂️ Jumping Ability: The player can now jump using the spacebar. script reference:
-
👀 Interactive Objects: When the player is near another capsule GameObject, a message will appear when the E key is pressed. script reference:
07-unity-3d-terrain-ai/Assets/Scripts/3-objects/popMessageAction.cs
Lines 31 to 37 in b44bf5b
-
💡 Light Control: The player can turn the bedroom light on and off by pressing the L key. If the player is too far from the light, it will automatically turn off after a certain radius. script reference:
07-unity-3d-terrain-ai/Assets/Scripts/3-objects/LightAction.cs
Lines 21 to 26 in b44bf5b
The main script for the ActionKeyPressed functinalities: https://github.com/TwoBitCode/07-unity-3d-terrain-ai/blob/main/Assets/Scripts/3-objects/ActionOnKeyPress.cs
- 👨💻 Vivian Umansky
- 👨💻 Miriam Nagar
- 👨💻 Michael Lemberger
- 👨💻 Erel Segal-Halevi