v0.6.1
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
inBody
is now initialized correctly- All classes now have .constructor set correctly
Additions
- Added
.collisonResponse
flag forBody
andShape
. - Added methods
.raycastClosest
,.raycastAll
and.raycastAny
toWorld
- Added method
Body.prototype.integrate
- Added properties
.ccdSpeedThreshold
and.ccdIterations
toBody