threejs_car_demo

This is the source code (three.js and Cannon-es) for a GLTF car that can be controlled from the keyboard

3d-models · 3d-website · cannon-es · cannonjs · game-development
入门
GitHub在线演示
Stars:15
License:MIT License
更新:2025/9/23

README

Three.js and Cannon-es demo car

This is a demo site that adds physics to a GLTF car.

"Vintage Racing Car" link by Mateusz Woliński is licensed under Creative Commons Attribution link.

The texture used is by Joao Paolo link.

The project was built using template's borrowed by Bruno Simon's threejs-journey class.

The project uses the Cannon-es and three.js libraries. For any questions, suggestions, etc, you can email me at email.

Setup

Download Node.js. Run the following commands:

# Install dependencies (only the first time)
npm install

# Run the local server at localhost:8080
npm run dev

# Build for production in the dist/ directory
npm run build