RV Engine - Upload & drive your favorite car model on the web and generate physics code

RV Engine GIF

Raycast Vehicle Engine

Demo: https://rv-engine.jaagrav.in/
Repo: GitHub - Jaagrav/raycast-vehicle-engine: Drive your favorite 3D car in your threejs world just by uploading the GLTF Model and generating code all on the browser itself!

Simply upload your favourite car’s chassis model and car’s wheel model and the RV Engine would automatically create a car with the same look and feel. It would also be able to control the car’s movement and rotation. Add physics and everything else you want to the car and you’re good to go. After that you can simply download it as a zip file. Follow the same setup procedure, and you have a new raycast vehicle generated.

Features

  • Vehicle physics
  • Change Vehicle Mass, Suspension Strength, Suspension Damping, etc.
  • Change the position of each wheel, set the size of each wheel and have all the controls to yourself.
  • Change the max speed of the car, movement controls etc directly from the GUI.
  • Position the chassis from GUI, see helper to view the chassis in the physics world. Same goes for all of the wheels.
  • Generate code, simply either copy Car.JS code or Download the ZIP file that has everything sitting ready for you. All you need to do is install it using npm once unzipped.

Built With

  • ThreeJS - JavaScript 3D library
  • Cannon-ES - 3D physics engine
  • Guify - GUI framework
  • File Saver - Save files to disk

What’s next?

  • Add more physics to the car
  • Add more wheels to the car
  • Add more features to the car
  • Add more car models
  • Add more physics models
  • Add more wheel models

Written by Jaagrav

6 Likes

Now you just need a simple track builder and you would have a complete product. :smiley: