Skip to content

v0.6.1

Compare
Choose a tag to compare
@schteppe schteppe released this 29 Mar 11:29
· 275 commits to master since this release

Small release, fixes some bugs and adds basic raycasting + experimental CCD.

Changes

  • Changed default broadphase algorithm to SAPBroadphase.

Fixes

  • Fixed bug in endContact event, bodyB had the value of bodyA.
  • Require.js fix for the build files, making it possible to use p2.js on the same page as require.js
  • .idleTime in Body is now initialized correctly
  • All classes now have .constructor set correctly

Additions

  • Added .collisonResponse flag for Body and Shape.
  • Added methods .raycastClosest, .raycastAll and .raycastAny to World
  • Added method Body.prototype.integrate
  • Added properties .ccdSpeedThreshold and .ccdIterations to Body