Skip to content

emberwing-dash/VR-Mathipia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📏 VR Mathipia

mainMenu

🧠📐 Game Overview

VR Mathipia is an immersive VR learning experience where users visualize and interact with 3D coordinate geometry and space physics.

You explore mathematical concepts through gameplay by navigating a spaceship, assisted by a companion AI named Phobo, while tracking and eliminating incoming meteorites using real-world mathematical models.


🚀🧭 1. Explore the Spaceship

🧭📍 Movement System

  • Smooth VR locomotion for immersive exploration
  • Natural controller-based movement
  • Full interaction inside spaceship environment

🤖➗ Companion – Phobo

  • AI companion inside the spaceship
  • Guides player through missions
  • Explains spatial concepts using dialogue
  • Helps understand math visually in VR
phoboImg

☄️📡 2. Track Incoming Meteorites

🔫📏 Ray Shooter System

  • Ray is cast from player/camera direction
  • Detects meteor collision in real time
  • Computes exact 3D hit position
  • Visualizes spatial vector direction
rayGun

📐📊 Mathematical & Physics Concepts Used

shapeAnalysis

📡 Radar Distance (Time-of-Flight)

d = (c × Δt) / 2

Where:

  • c = Speed of light (299,792,458 m/s)
  • Δt = Signal travel time
  • d = Distance to object

Used to simulate real-world radar-based distance calculation.


📍 Ray Equation (Parametric Line in Space)

P = A + tD

Where:

  • P = Target point (meteor position)
  • A = Origin (spaceship position)
  • D = Direction vector (normalized)
  • t = Distance scalar

Component Form:

  • Px = Ax + tDx
  • Py = Ay + tDy
  • Pz = Az + tDz

📏 3D Distance Formula

d = √((x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²)

Used to compute:

  • Distance between spaceship and meteor
  • Ray travel length

🧭 Direction Vector (Normalization)

D = (M - A) / |M - A|

Where:

  • M = Meteor position
  • A = Ship position

Ensures accurate directional targeting in 3D space.


📦 Bounding Box Geometry

Used to approximate meteor shape:

  • Width (X), Height (Y), Depth (Z) extracted from spatial bounds
  • Forms an axis-aligned bounding box around scanned points

⚖️ Shape Detection (Sphere Approximation)

|X - Y| < ε AND |Y - Z| < ε

If dimensions are approximately equal → Sphere
Else → Irregular Shape


🌑 Ellipsoid Volume (Meteor Approximation)

V = (4/3)πabc

Where:

  • a, b, c = Semi-axes (half of width, height, depth)

Used to estimate meteor size and physical mass volume.


🧠 Ellipsoid Surface Area (Knud Thomsen Approximation)

A ≈ 4π (( (ab)^p + (ac)^p + (bc)^p ) / 3)^(1/p)

Where:

  • p ≈ 1.6

Provides a highly accurate surface estimation for irregular 3D bodies.


🧩📦 3D Scanning & Real-World Import System

fileBrowser

📱📡 Real-World Object Capture

VR Mathipia supports importing real-world scanned objects into the VR environment using iPhone LiDAR-based scanning tools such as Luma 3D.

🔄 Workflow

  1. Scan real-world object using Luma 3D (iPhone LiDAR scan)
  2. Export model as 3D file (OBJ / GLB)
  3. Import into VR Mathipia at runtime
  4. Select scanned object inside VR file browser
  5. Spawn object into VR space
  6. Apply bounding and mesh analysis

📐 Geometry Analysis (Post Scan)

blockOut

Once imported, the system automatically:

  • Computes approximate bounding box
  • Estimates:
    • 📦 Surface Area
    • ⚖️ Volume (using ellipsoid approximation)
  • Detects shape classification (sphere / irregular / complex mesh)
  • Allows real-time scaling & inspection inside VR

🧠 Educational Use

This system helps users:

  • Understand real-world geometry
  • Compare scanned objects with mathematical models
  • Visualize how abstract formulas apply to physical objects

🎮🪐 Gameplay Flow

  1. Enter spaceship with Phobo
  2. Explore VR environment
  3. Receive mission briefing
  4. Detect incoming meteorites
  5. Scan meteor shape using ray system
  6. Analyze geometry using bounding + physics formulas
  7. Import real-world scanned objects (Luma 3D)
  8. Compute surface area + volume of scanned models
  9. Calculate exact coordinates using vector math
  10. Lock target and destroy meteor
  11. Complete mission

🛠️⚙️ Tech Stack

  • Unity (VR Development)
  • Blender (3D Modeling)
  • Meta XR (VR Integration)
  • Luma 3D (Real-world scanning pipeline)

👨‍💻📦 Creator Team

  • Rishav Goswami — VR Developer
  • Rahul Singla — UI Designer

📡 Vision

VR Mathipia transforms abstract mathematics into a visual + interactive VR experience, combining geometry, vector mathematics, and real-world physics + scanning to make learning intuitive, immersive, and engaging.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages