Skip to content

fatima-104/Free-Fall-Acceleration-unity3d

Repository files navigation

🎮 Free Fall Physics Simulator

An interactive 3D mobile game built in Unity that teaches the physics of gravity, free fall, and air resistance through real-time experimentation. Drop objects from a mountain peak, adjust air resistance live, and watch physics explain itself.


📱 Demo

Zero Resistance Air Resistance Active Result Screen
All objects fall together Heavier objects fall faster Physics explained dynamically

📸 Screenshots above show gameplay across different resistance settings


🧠 What It Teaches

Scenario What Happens Physics Concept
Air resistance = 0 Dumbbell, feather & book land together Gravity accelerates all masses equally
Air resistance > 0 Dumbbell hits first, feather drifts last Drag force depends on mass & surface area
Air resistance < 0 Objects accelerate faster than gravity Net force exceeds gravitational pull

✨ Features

  • 🎚️ Live air resistance slider — adjust from negative to positive values mid-simulation
  • 🪶 3 objects with different masses — dumbbell, feather, and book
  • 💬 Dynamic result system — contextual physics explanation after every drop
  • 🔁 Replay & Reset — experiment repeatedly without restarting
  • ➡️ Multi-level progression — Next button unlocks after completing a scenario
  • 🏔️ Immersive 3D environment — realistic mountain and terrain setting
  • 📱 Mobile-first UI — designed for portrait mode on Android/iOS

🛠️ Tech Stack

Tool Purpose
Unity 3D Game engine & physics simulation
C# Gameplay logic, physics calculations, UI interactions
TextMeshPro In-game UI text & result messages
Unity Physics Engine Real-time object fall & drag simulation
Git Version control

🚀 How to Run

Prerequisites

  • Unity Hub installed
  • Unity Editor version 2021.3 LTS or later (recommended)
  • Android Build Support module (for mobile build)

Steps

1. Clone the repository

git clone https://github.com/fatima-104/free-fall-simulator.git
cd free-fall-simulator

2. Open in Unity

- Open Unity Hub
- Click "Add project from disk"
- Select the cloned folder
- Open the project

3. Run in Editor

- In the Project window, navigate to: Assets → Scenes
- Open the main scene: FreeFallSimulator
- Press the ▶ Play button in the Unity toolbar

4. Build for Android (optional)

- Go to File → Build Settings
- Select Android → Switch Platform
- Click Build and Run
- Install the APK on your device

🎮 How to Play

  1. Launch the simulation — three objects appear at the top of the mountain
  2. Adjust the slider — set air resistance (negative, zero, or positive)
  3. Press DROP — watch the objects fall in real time
  4. Read the result — a physics explanation appears based on the outcome
  5. Press REPLAY to try a different resistance value, or NEXT to progress

📂 Project Structure

free-fall-simulator/
│
├── Assets/
│   ├── Scenes/          # Main game scene
│   ├── Scripts/         # C# gameplay & physics scripts
│   ├── Prefabs/         # Object prefabs (dumbbell, feather, book)
│   ├── UI/              # Canvas, buttons, slider components
│   └── Materials/       # 3D environment materials
│
├── Packages/            # Unity package dependencies
└── ProjectSettings/     # Unity project configuration

👩‍💻 Author

Rida Fatima Unity Game Developer | BS Information Technology — University of Gujrat

LinkedIn GitHub 📧 itsrida432@gmail.com


📄 License

This project is open source and available under the MIT License.


Built with curiosity and C# — because physics is more fun when you can play with it.

About

Interactive 3D physics simulation built in Unity. Drop objects, adjust air resistance in real time, and learn why they land differently. Built with Unity 3D, C# and TextMeshPro.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors