This project presents an interactive, digital twin of a modernized house in Niavaran, Tehran, Iran, designed for architectural visualization. Spanning 110 square meters, the simulation includes a kitchen, TV room, and living room, allowing users to pick up household objects like candles, forks, and flowers, or to sit in various chairs, experiencing the space from different perspectives.
Created In: 2022
Collaboration: a group of 3 people – My role was the main developer and programmer
Link to Play the Game:
m4tin – itch.io
Game Engine: Unity- C#
Camera Movement:
I implemented dynamic camera movement throughout the house using Unity’s Cinemachine SmoothPath. This allowed for seamless, smooth transitions between different areas of the house.
Dynamic Sitting Interaction:
I developed a short and efficient script designed to handle various scenarios and situations, allowing the player to sit on any chair and seamlessly switch between chairs. The system identifies sittable objects using a custom Sitable layer, ensuring flexibility and scalability across different chair types. Additionally, I used delegates to efficiently link UI buttons with the sitting logic
Interactive Item Pickup:
I designed a short, optimized, and universal pickup script to handle a variety of player interactions with objects of different sizes and rotations. The script ensures flexibility, making it adaptable to various gameplay situations. For special cases like picture albums, where the player may want to view the pictures clearly, I added an extra feature that adjusts the rotation of the pictures so they always face the player when picked up. Additionally, I utilized delegates to efficiently link UI buttons with the pickup functionality
Lighting Setup:
I used different types of lights to create a realistic feel in the house. Point lights were used for small light sources like lamps, spotlights for ceiling lights, and area lights to simulate light coming from windows. I also added reflection probes to make reflections on surfaces look more realistic.
UI Design:
I created a simple UI that fits the modern theme of the house, using a minimal circular design. It lets players easily choose actions like sitting or picking up objects and leaves room for future features. I took some inspiration from GTA V and The Sims to help me figure out how to keep the interface clean and easy to use.
Device Support
– The game build is Windows.
Unity packages
– Unity Cinemachine package.