/cocos-creator-physics

Cocos Creator Physics Components

Primary LanguageJavaScriptMIT LicenseMIT

cocos-creator-physics

Cocos Creator Physics Plugins

alt tag

Components to add basic physics to Cocos Creator, using Matter.js

Install

Cocos Creator

Setup

  1. Download and install matter-js and poly-decomp.js

  2. Download and copy in to your Cocos Creator proyect MatterWorld.js and Rigidbody.js

  3. Add a MatterWorld component to your root

  4. Add to that a Rigidbody component to yours objects with collider.

Example

Basic rectangle, circular and custom shapes colliders example link

Demo

Open

About

The library is a manual port of the Js library MatterJS for Cocos Creator