- Removed support for deprecated THREE.Geometry, use THREE.BufferGeometry instead.
- 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-levelShapeType
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);
...