🤖 Merge PR #54883 Updates for Cannonjs types. Added Trimesh, added HingeConstraint properties, added Shape properties, fixed ConvexPolyhedron constructor by @Sean-Bradley
🤖 Merge PR #54883 Updates for Cannonjs types. Added Trimesh, added HingeConstraint properties, added Shape properties, fixed ConvexPolyhedron constructor by @Sean-Bradley

* added Trimesh
fixed ConvexPolyhedron constructor - faces is a number[][]
added TRIMESH to Shape.types
added geometryId to Shape
added axisA, axisB to HingeConstraint
added setMotorSpeed to HingeConstraint
added target to ICollisionEvent

this type def was used to validate the typescript that generated these examples
https://sbcode.net/threejs/physics-cannonjs/
https://sbcode.net/threejs/physics-cannonDebugrenderer/
https://sbcode.net/threejs/compounds-versus-convex-polyhedrons/
https://sbcode.net/threejs/convexobjectbreaker/
https://sbcode.net/threejs/physics-car/
https://sbcode.net/threejs/physics-heli/

* added author to comment

* firstOrSecond: 0|1, moved target to IBodyEvent, getTrianglesInAABB now accepts number[], calculateWorldAABB accepts Vec3 & Vec3 instead of number & number, chnaged shape geometryid to id

* removed trailing whitespace at line 1059

* more specific return type for trimesh getTrianglesInAABB
markogresak/DefinitelyTyped