Skip to content

v0.6.0

Compare
Choose a tag to compare
@schteppe schteppe released this 21 Sep 16:30
· 246 commits to master since this release

Changes

  • Renamed RigidBody to just Body and changed the constructor signature.
  • Removed the Compound class, since a Body now contains a flat Shape hierarchy.
  • Renamed property .motionState to .type in Body.
  • Renamed the 'collide' event .with property to .body.
  • Renamed ObjectPool to just Pool.
  • World now dispatches events 'addBody' and 'removeBody'.
  • Changed API for adding forces and impulses to a body. See Body.applyImpulse and Body.applyForce.
  • Removed World.collision_matrix and instead added World.collisionMatrix and World.collisionMatrixPrevious. They both now work with body indices instead of body IDs.
  • Renamed Body.calculateAABB to .computeAABB. Added Body.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 to Broadphase.collisionPairs(world,pairs1,pairs2), removing the need of an array return value.
  • Renamed ContactGenerator to Narrowphase.
  • Changed direction of the available math .copy methods, now they follow the pattern dest.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 in World.

Additions

  • Added class Spring.
  • Added class SAPBroadphase.
  • Added class TupleDictionary.
  • Added method .setFromEuler to Quaternion.
  • Added methods .transpose, .setRotationFromQuaternion, .scale to class Mat3.
  • Added Broadphase.useBoundingBoxes, .doBoundingBoxBroadphase and .intersectionTest.
  • Added Body.collisionFilterGroup and Body.collisionFilterMask.
  • Added class GridBroadphase, though it only supports Plane and Sphere for now.
  • Added class SPHSystem.
  • Added classes RaycastVehicle and WheelInfo.
  • Added class RigidVehicle.
  • Added class Heightfield.