mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 08:33:40 +00:00
50e126f59e
* Body.setCircle allows you to define a Body as using a circle to collide with instead of a rectangle. You can set the radius of the collision circle and an offset. * Body.render now renders both circle and rectangle body shapes to the Debug canvas. * World.intersects has been updated to support both circle and rectangle body shapes, and supports quick-paths for circle vs. circle and rect vs. rect checks. * World.circleBodyIntersects is a new method that checks for intersection between a Body that has been defined as a circle, and a normal rectangle based Body. This is used internally by World.intersects, but exposed for direct calls as well. |
||
---|---|---|
.. | ||
arcade | ||
ninja | ||
p2 | ||
Physics.js |