v0.6.0
Changes
- Renamed
RigidBody
to justBody
and changed the constructor signature. - Removed the
Compound
class, since aBody
now contains a flatShape
hierarchy. - Renamed property
.motionState
to.type
inBody
. - Renamed the
'collide'
event.with
property to.body
. - Renamed
ObjectPool
to justPool
. World
now dispatches events'addBody'
and'removeBody'
.- Changed API for adding forces and impulses to a body. See
Body.applyImpulse
andBody.applyForce
. - Removed
World.collision_matrix
and instead addedWorld.collisionMatrix
andWorld.collisionMatrixPrevious
. They both now work with body indices instead of body IDs. - Renamed
Body.calculateAABB
to.computeAABB
. AddedBody.aabbNeedsUpdate
. ConvexPolyhedron
constructor now calculates normals instead of taking them as a parameter.- Reuse of various event objects to minimize object creation in the step loop.
- Removed unused class
ContactPoint
. - Changed the signature of
Broadphase.collisionPairs
toBroadphase.collisionPairs(world,pairs1,pairs2)
, removing the need of an array return value. - Renamed
ContactGenerator
toNarrowphase
. - Changed direction of the available math
.copy
methods, now they follow the patterndest.copy(source)
. - Rewrote large parts of the
Ray
class. Now it has a start point and an end point, instead of a start point and a direction. - Improved sleeping.
- Renamed property
.last_dt
to.dt
inWorld
.
Additions
- Added class
Spring
. - Added class
SAPBroadphase
. - Added class
TupleDictionary
. - Added method
.setFromEuler
toQuaternion
. - Added methods
.transpose
,.setRotationFromQuaternion
,.scale
to classMat3
. - Added
Broadphase.useBoundingBoxes
,.doBoundingBoxBroadphase
and.intersectionTest
. - Added
Body.collisionFilterGroup
andBody.collisionFilterMask
. - Added class
GridBroadphase
, though it only supportsPlane
andSphere
for now. - Added class
SPHSystem
. - Added classes
RaycastVehicle
andWheelInfo
. - Added class
RigidVehicle
. - Added class
Heightfield
.