Unity Elevator Simulation – Multiple Lift System

Overview

This project implements a 2D elevator simulation built using Unity Engine 6. The system contains 3 elevators and 4 floors where elevators respond to floor requests using structured dispatch logic.

The goal of this project is to demonstrate: • Unity UI implementation • Multi-object coordination • Elevator request scheduling • Clean system architecture

Features

Multiple Elevators

  • Three elevators operate independently.
  • Each elevator maintains its own request queue.

Floor Call Buttons

  • Each floor has a button to request an elevator.

Elevator Dispatch System

  • The system selects the nearest elevator to respond to a request.

Smooth Elevator Movement

  • Elevators move smoothly between floors rather than teleporting.

Floor Indicators

  • Each elevator displays its current floor.

System Architecture

The system is divided into several core components:

ElevatorManager

  • Handles elevator dispatch logic.
  • Determines which elevator should respond to a request.

ElevatorController

  • Controls elevator movement.
  • Manages the request queue for each elevator.

FloorButton

  • Sends elevator requests when a button is pressed.

ElevatorDisplay

  • Displays the current floor for each elevator.

Elevator Dispatch Logic

When a floor button is pressed:

  1. The request is sent to the ElevatorManager.
  2. The manager checks all elevators.
  3. The nearest elevator is selected.
  4. The request is added to that elevator's queue.

Distance is calculated based on the difference between the elevator’s current floor and the requested floor.

Design Decisions

• Each elevator maintains an independent request queue • Elevators move vertically using smooth interpolation • Floor positions are defined using Transform references • Duplicate requests are prevented within the queue

Controls

Press the floor buttons on the right side of the screen to call an elevator.

Technical Details

Engine: Unity 6 

Type: 2D Simulation 

Elevators: 3 

Floors: 4

Future Improvements

Potential enhancements include:

  • Direction-aware elevator scheduling
  • Elevator door animations
  • Internal elevator panel buttons
  • Visual request indicators
  • Improved dispatch algorithms

Author

Aditya Gupta Unity Developer Intern Assignment Underpin Technology

Published 5 days ago
StatusIn development
PlatformsHTML5
AuthorMellohyu
GenreSimulation
Made withUnity

Leave a comment

Log in with itch.io to leave a comment.