https://github.com/cconsta1/threejs_car_demo
This is the source code (three.js and Cannon-es) for a GLTF car that can be controlled from the keyboard
https://github.com/cconsta1/threejs_car_demo
3d-models 3d-website cannon-es cannonjs game-development gltf gltf-loader nodejs threejs threejs-example threejs-learning
Last synced: about 1 year ago
JSON representation
This is the source code (three.js and Cannon-es) for a GLTF car that can be controlled from the keyboard
- Host: GitHub
- URL: https://github.com/cconsta1/threejs_car_demo
- Owner: cconsta1
- License: mit
- Created: 2022-09-02T13:12:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-25T08:59:38.000Z (over 1 year ago)
- Last Synced: 2024-12-25T09:31:31.343Z (over 1 year ago)
- Topics: 3d-models, 3d-website, cannon-es, cannonjs, game-development, gltf, gltf-loader, nodejs, threejs, threejs-example, threejs-learning
- Language: JavaScript
- Homepage: https://threejs-car-physics-demo.vercel.app/
- Size: 484 MB
- Stars: 13
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Three.js and Cannon-es demo car
This is a demo site that adds physics to a GLTF car.
"Vintage Racing Car" [link](https://skfb.ly/o8wJy) by Mateusz Woliński
is licensed under Creative Commons Attribution
[link](http://creativecommons.org/licenses/by/4.0/).
The texture used is by Joao Paolo [link](https://3dtextures.me/).
The project was built using template's borrowed by [Bruno Simon's](https://github.com/brunosimon)
[threejs-journey](https://threejs-journey.com/) class.
The project uses the [Cannon-es](https://pmndrs.github.io/cannon-es/docs/index.html)
and [three.js](https://threejs.org/) libraries. For any questions, suggestions, etc,
you can email me at [email](chrysovalantis.constantinou@gmail.com).
## Setup
Download [Node.js](https://nodejs.org/en/download/).
Run the following commands:
``` bash
# 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
```