Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 755 Bytes

CHANGELOG.md

File metadata and controls

27 lines (19 loc) · 755 Bytes

Changelog

v5

  • Removed support for deprecated THREE.Geometry, use THREE.BufferGeometry instead.

v4

  • Removed dependency on deprecated THREE.Geometry, which was removed in three.js >r125.
    • THREE.Geometry inputs are still supported, and converted automatically to THREE.BufferGeometry.
  • Converted the project to TypeScript.
  • Moved type enum from threeToCannon.Type to top-level ShapeType export.
  • Optional .offset and .quaternion properties are returned with the Shape, not attached to it:
// Before:
const shape = threeToCannon(object);
shape.offset; // → CANNON.Vec3 | undefined
shape.quaternion; // → CANNON.Quaternion | undefined

// After:
const {shape, offset, quaternion} = threeToCannon(object);

v3

...