Melonjs Physics

Use this skill for collision, physics bodies, movement, and spatial queries in melonJS — the built-in SAT world and the planck/matter adapters. Covers bodyDef vs Body, collision types and masks, the collision callback family and their firing rules, raycast/queryAABB/querySphere, and the behaviour differences between adapters. Triggers on: Body, bodyDef, collision, collisionType, collisionMask, onCollision, onCollisionStart, onCollisionActive, raycast, queryAABB, querySphere, PlanckAdapter, MatterAdapter, gravity, velocity, applyForce, isGrounded, SAT.

melonjs 3eb5343 18.5 KB Updated

File contents

melonjs/melonjs/tree/main/packages/melonjs/skills/melonjs-physics commit 3eb53436c3

Frequently asked questions

npx skillmds@latest add melonjs/melonjs-physics