Built with anycoder

Collision Settings

Simulating Cocos Creator collision logic using Matter.js physics. Adjust parameters to see how Object B reacts when hit by Object A.

2
0.8
15

Logic Explanation

In Cocos Creator, this logic is usually handled in the onCollisionBegin callback. We apply an impulse or force vector to the target body based on the collision normal.