Skip to content

๐Ÿš— **Realistic VR Car Driving Simulator with NITTO Drive 1 Pro and Meta Quest support** featuring smooth camera transitions, realistic physics, and lifelike controls.

Notifications You must be signed in to change notification settings

lakshya-02/The_Car_Simulator_-VR-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš— The Car Driving Simulator VR

A fully immersive car driving simulator in Unity with VR support using Meta Quest 2 and NITTO Drive 1 Pro steering wheel. The simulator features realistic car physics, VR head tracking, and controller-based driving mechanics.


๐Ÿ”ฅ Features

โœ… Realistic Driving Physics:

  • Smooth acceleration, braking, and steering.
  • Natural vehicle movement with proper gravity and wheel colliders.

โœ… VR Integration:

  • Supports Meta Quest 2 with OpenXR.
  • first-person driver view.

โœ… Steering Wheel Controls:

  • NITTO Drive 1 Pro compatibility with Xbox mode.
  • Accurate steering, acceleration, braking, and reverse control.

โœ… Camera System:

  • VR camera rig follows the car with realistic driver perspective.
  • Multiple views: Driver view, hood view, and free-look.

โœ… Optimized Performance:

  • Uses Single-Pass Rendering for better VR performance.
  • Stable car physics to prevent flipping.

โœ… NO Need For any Special item:

  • You Can Play this Game Via any controller
  • No need For VR (VR is for Better experince ) to Play

๐Ÿ› ๏ธ Tech Stack & Tools

  • Game Engine: Unity 2022.3.51f1
  • VR SDK: OpenXR with Meta Quest 2 support
  • Input System: XR Interaction Toolkit and Scripts
  • Hardware:
    • Meta Quest 2 VR headset
    • NITTO Drive 1 Pro steering wheel (Xbox mode)
  • Assets:
    • Vehicle Physics Pro (VPP) โ†’ For realistic car behavior
    • XR plugins for Meta Quest 2

๐Ÿ”ง Installation & Setup

โœ… 1. Clone the Repository

git clone https://github.com/lakshya-02/The_Car_Simulator_-VR-  
cd VR-Game  

โœ… 2. Unity Configuration

  • Open the project in Unity 2022.3.34f1 or higher.

  • Go to Edit โ†’ Project Settings โ†’ XR Plug-in Management:

    • Enable OpenXR.
    • Select Meta Quest Support.
  • Player Settings:

    • Go to Edit โ†’ Project Settings โ†’ Player โ†’ Other Settings.
    • Set Color Space to Linear.
    • Set Rendering Path to Forward.
    • Check Single-Pass Instanced Rendering.
  • Enable VR Preview:

    • Go to Oculus App โ†’ Devices โ†’ Air Link โ†’ Pair with Unity.
    • Ensure Oculus Link is enabled.

๐ŸŽฎ Steering Wheel Controls

Button Action Unity Input Name
Steering Left / Right Turn Steering Axis
White Button (Right) Brake joystick button 4
White Button (Left) Accelerate joystick button 5
Metal LB Respawn the Car joystick button 6
Metal RB Change Toggle/View joystick button 7
X Button Reverse Gear joystick button 2
Y Button Neutral Gear joystick button 3
B Button Increase Gear joystick button 1
A Button Turn On Engine joystick button 0

โœ… VR Controls

  • Head Tracking:
    • Move your head to look around inside the car.
  • Car Movement:
    • Use the steering wheel for left and right movement.
    • Accelerate, brake, and reverse using the pedal system.
  • Reset View:
    • Click the right joystick to re-center the VR view.

๐Ÿ“ธ Screenshots

Screenshot 2025-03-20 231432 Screenshot 2025-03-20 231945 Screenshot 2025-03-20 231834 Screenshot 2025-03-20 231758 Screenshot 2025-03-20 231543

๐Ÿš€ How to Play

  1. Start Unity with your Meta Quest 2 connected via Air Link.
  2. Press Play in Unity.
  3. Put on the Meta Quest 2 headset.
  4. Use the steering wheel for driving and VR headset for a realastic view.
  5. Enjoy the immersive driving experience! ๐Ÿš—๐Ÿ•ถ๏ธ

โš™๏ธ Customization

โœ… Changing the Car Model:

  • Go to Assets โ†’ Prefabs โ†’ Car โ†’ Replace the model with your custom car.
  • Ensure the wheel colliders and rigid body parameters are properly configured.

โœ… Adjusting VR Camera Position:

  • Move the XR Origin object in the hierarchy to adjust the camera height and position.

โœ… Modifying Car Physics:

  • Open the CarController script โ†’ Adjust values like:
    • steeringSpeed, maxSpeed, and acceleration.

โœ… Change Steering Sensitivity:

  • Modify the sensitivity in Input Actions for smoother steering.

๐Ÿ› ๏ธ Troubleshooting

โœ… VR Not Detecting in Unity:

  • Ensure Air Link is enabled in Meta Quest 2 settings.
  • Restart Unity if VR is not detected.

โœ… Steering Wheel Not Recognized:

  • Set the NITTO Drive 1 Pro to Xbox Mode.
  • Restart Unity after switching controller modes.

โœ… Laggy Performance:

  • Lower the Fixed Timestep to 0.01 in Project Settings โ†’ Time.
  • Reduce shadow quality and enable Single-Pass Rendering.

๐Ÿ› ๏ธ Future Enhancements

๐Ÿ”ฅ Multiplayer Mode: Drive with friends in VR multiplayer mode.
๐Ÿ”ฅ Weather Effects: Realistic rain, fog, and snow effects.
๐Ÿ”ฅ Day-Night Cycle: Dynamic lighting conditions.
๐Ÿ”ฅ Custom Cars: Add new car models with unique physics.


๐Ÿ’ป Contributing

  1. Fork the repository.
  2. Create a new branch:
git checkout -b feature/your-feature-name  
  1. Commit your changes:
git commit -m "Add new feature"  
  1. Push the branch:
git push origin feature/your-feature-name  
  1. Submit a Pull Request.

๐Ÿ“„ License

This project is licensed under the MIT License. You are free to use and modify but give proper Credit.


๐ŸŽฏ Credits

  • Unity Asset Store Assets โ†’ Vechile Physics Pack
  • Meta Quest 2 โ†’ For VR integration.
  • NITTO Drive 1 Pro โ†’ For steering wheel controls.

๐Ÿš€ Contact

For any issues or suggestions:
๐Ÿ“ง Email: lakshyasingh@gmail.com
๐Ÿ“Œ GitHub: https://github.com/lakshya-02
๐Ÿ“Œ GitHub: https://github.com/Tahaa-Mushtaq
๐Ÿ“Œ LinkedIn: https://www.linkedin.com/in/lakshya-singh-2833a2328/

About

๐Ÿš— **Realistic VR Car Driving Simulator with NITTO Drive 1 Pro and Meta Quest support** featuring smooth camera transitions, realistic physics, and lifelike controls.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •