Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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