diff --git a/src/world/physics.service.ts b/src/world/physics.service.ts index 73d6300..feb6e9b 100644 --- a/src/world/physics.service.ts +++ b/src/world/physics.service.ts @@ -88,6 +88,10 @@ export class PhysicsService { root.traverse((object) => { if (trackedObjects.some((item) => item.uuid === object.uuid)) { physicsLeaveUUIDs.push(object.uuid); + + if ((object as PhysicsObject).dispose) { + (object as PhysicsObject).dispose(); + } } });