Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/decentraland-scenes/cannon-car-example-scene
https://github.com/decentraland-scenes/cannon-car-example-scene
decentraland
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/decentraland-scenes/cannon-car-example-scene
- Owner: decentraland-scenes
- Created: 2020-07-11T13:05:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-10T17:16:07.000Z (over 4 years ago)
- Last Synced: 2024-08-05T15:04:42.049Z (5 months ago)
- Topics: decentraland
- Language: TypeScript
- Homepage:
- Size: 2.43 MB
- Stars: 1
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-Repository - Car + Physics - car.gif" width="200"> | Drive a car through piles of boxes and see them tumble down, using cannon.js for physics. | (Examples / Essentials)
README
# Cannon Car Example Scene
_demo of cannon-car-example-scene running in preview._
![demo](https://github.com/decentraland-scenes/cannon-car-example-scene/blob/master/screenshots/cannon-car.gif)
## Description
Using raycast vehicle from the [cannon.js](https://github.com/schteppe/cannon.js) physics engine. You can find the original code that this was based on [here](https://github.com/schteppe/cannon.js/blob/master/demos/raycastVehicle.html).## Running the scene
After you clone the project, run the following:```
$ npm i -g decentraland
```Followed by:
```
$ dcl start
```* Left Mouse Button to accelerate
* Press E Key to turn left
* Press F Key to turn right
* Press E and F Keys together to brake