Skip to content

Ammar880121/Medical-Unity-VR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฅ Medical Unity VR Simulator

An advanced virtual reality medical training platform featuring realistic organ simulations and surgical procedures

Unity SofaUnity C# VR Main Menu

๐Ÿ“– About

Medical Unity VR is an immersive educational platform designed for medical training and anatomical exploration. Built with Unity and powered by SofaUnity for realistic soft-body physics, this simulator provides hands-on experience with various medical procedures in a safe, virtual environment.

โœจ Features

๐Ÿซ˜ Liver Surgery Simulation

  • Cutting mechanics with realistic tissue separation
  • Squeezing and deformation using SofaUnity physics engine
  • Accurate soft-body dynamics for surgical practice

โค๏ธ Cardiac System

  • Heart pumping simulator with realistic cardiac cycle
  • Dynamic heart deformation and motion
  • Interactive cardiovascular anatomy exploration

๐Ÿ‘ƒ Nasal Cavity Interaction

  • Real-time deformation on collision
  • Physical feedback when a Sphere Collider interact with nasal structures
  • Realistic collision physics

๐Ÿฆท Dental Surgery

  • Teeth extraction simulator with realistic mechanics
  • Individual tooth manipulation and removal
  • Surgical tool interaction system

๐Ÿฉธ Blood Flow Visualization

  • Interactive blood flow system with visual feedback
  • Flow blocking mechanics using physical objects
  • Realistic Blood flow using Blood flow path script

๐ŸŽฎ Simulators Overview

Simulator Features Physics Engine
Liver Cutting, Squeezing, Deformation SofaUnity
Heart Pumping Animation, Deformation CustomSystem
Nasal Cavity Collision Detection, Deformation Unity Physics
Teeth Extraction, Tool Interaction Unity Physics
Blood Flow Flow Visualization, Blocking Unity Physics + Custom System

๐Ÿ› ๏ธ Built With

  • Unity - Cross-platform game engine
  • C# - Core programming language
  • SofaUnity - Real-time soft tissue simulation
  • Unity XR - VR integration framework

๐Ÿš€ Getting Started

Prerequisites

  • Unity 2020.3 LTS or newer
  • VR headset (Oculus Quest 2/3, Meta Quest, HTC Vive, or Valve Index)
  • Windows 10/11 (recommended) or macOS
  • 8GB RAM minimum, 16GB recommended
  • SofaUnity plugin

Installation

  1. Clone the repository

    git clone https://github.com/Ammar880121/Medical-Unity-VR.git
  2. Open in Unity Hub

    • Launch Unity Hub
    • Click "Add" โ†’ "Add project from disk"
    • Select the cloned Medical-Unity-VR folder
  3. Install Dependencies

    • Unity will automatically import required packages
    • Ensure SofaUnity plugin is properly installed
    • Configure XR settings for your VR headset
  4. Configure VR Settings

    • Go to Edit > Project Settings > XR Plug-in Management
    • Enable your VR platform (Oculus, OpenVR, etc.)
    • Verify device connection
  5. Run the Project

    • Open the main scene from Assets/Scenes/
    • Click Play button or build for your target platform

๐ŸŽฏ Usage

VR Controls

Action VR Control Mouse/Keyboard Control
Grab/Hold Objects Grip Button Left Click or G
Use Tools Trigger Button Left Click
Navigate UI Joystick/Touchpad W/A/S/D-Q/E to move, Y/T/Space select VR Hand
Menu Access Menu Button Escape

๐Ÿ“‚ Project Structure

Medical-Unity-VR/
โ”œโ”€โ”€ Assets/
โ”‚   โ”œโ”€โ”€ Scenes/
โ”‚   โ”‚   โ”œโ”€โ”€ 1.unity (Main Menu)
โ”‚   โ”‚   โ”œโ”€โ”€ Liver Cut.unity
โ”‚   โ”‚   โ”œโ”€โ”€ Liver grap.unity
โ”‚   โ”‚   โ”œโ”€โ”€ Nasal.unity
โ”‚   โ”‚   โ”œโ”€โ”€ Teeth.unity
โ”‚   โ”‚   โ”œโ”€โ”€ Heart.unity
โ”‚   โ”‚   โ””โ”€โ”€ BloodFlow.unity
โ”‚   โ”œโ”€โ”€ Scripts/
โ”‚   โ”‚   โ”œโ”€โ”€ SimulationControllers/
โ”‚   โ”‚   โ”œโ”€โ”€ PhysicsHandlers/
โ”‚   โ”‚   โ”œโ”€โ”€ UI/
โ”‚   โ”‚   โ””โ”€โ”€ Bloodflowpath/
โ”‚   โ”œโ”€โ”€ Models/
โ”‚   โ”‚   โ”œโ”€โ”€ LiverMesh
โ”‚   โ”‚   โ”œโ”€โ”€ Dental (Teeth)
โ”‚   โ”‚   โ””โ”€โ”€ Nasal/
โ”‚   โ”œโ”€โ”€ Materials/
โ”‚   โ”œโ”€โ”€ Prefabs/
โ”‚   โ””โ”€โ”€ Plugins/
โ”‚       โ””โ”€โ”€ SofaUnity/
โ”œโ”€โ”€ Packages/
โ””โ”€โ”€ ProjectSettings/

๐ŸŽ“ Use Cases

  • Medical Education - Teaching anatomy and surgical procedures
  • Surgical Training - Practice techniques in a risk-free environment
  • Patient Education - Explaining procedures to patients
  • Research - Studying medical VR applications and effectiveness
  • Skills Assessment - Evaluating procedural competency

๐Ÿ”ฌ Technical Details

Physics Implementation

  • SofaUnity Integration for realistic soft tissue deformation
  • Real-time collision detection and response
  • Custom blood flow algorithms for circulatory visualization

Performance Optimization

  • LOD (Level of Detail) systems for complex models
  • Occlusion culling for better frame rates
  • Optimized mesh colliders for VR performance
  • 90+ FPS target for smooth VR experience

๐Ÿ“ธ Screenshots

Liver Simulator Heart Pumping Simulator Nasal Cavity Simulator Teeth Extraction Simulator Blood Flow Simulator

โญ Star this repository if you find it helpful!

Made with โค๏ธ for medical education

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors