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

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors