Introduction to Physics 2D

Cocos Creator supports the built-in lightweight builtin physics system and the powerful Box2D physics system. For simpler physics calculations, we recommend that users use the built-in physics module, which avoids the runtime overhead of loading large Box2D physics modules and building physics worlds. The Box2D physics module provides a more complete interaction with the interface and pre-defined components such as rigid bodies and joints.

Choose the physics module that suits development needs, and switch the physics module you use through the Project -> Project Setting -> Feature Cropping settings.

Module Setup

Details

Physics 2D Examples

Examples are available on physics-samples.

results matching ""

    No results matching ""