Skip to content

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

License

Notifications You must be signed in to change notification settings

cconsta1/threejs_car_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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