Cocos Creator Physics Plugins
Components to add basic physics to Cocos Creator, using Matter.js
Setup
-
Download and install matter-js and poly-decomp.js
-
Download and copy in to your Cocos Creator proyect MatterWorld.js and Rigidbody.js
-
Add a MatterWorld component to your root
-
Add to that a Rigidbody component to yours objects with collider.
Basic rectangle, circular and custom shapes colliders example link
The library is a manual port of the Js library MatterJS for Cocos Creator