From 3d420244d512bf694391c2f3c394a83bc032db28 Mon Sep 17 00:00:00 2001 From: LeXXik Date: Fri, 24 May 2024 12:25:46 +0300 Subject: [PATCH] make contactEventsEnabled private --- src/physics/jolt/back/backend.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/physics/jolt/back/backend.mjs b/src/physics/jolt/back/backend.mjs index f73b586..e63314e 100644 --- a/src/physics/jolt/back/backend.mjs +++ b/src/physics/jolt/back/backend.mjs @@ -51,7 +51,6 @@ class JoltBackend { // contact events charContactEventsEnabled: true, vehicleContactEventsEnabled: false, - contactEventsEnabled: true, contactAddedEventsEnabled: true, contactPersistedEventsEnabled: false, contactRemovedEventsEnabled: true, @@ -70,6 +69,10 @@ class JoltBackend { ], ...data.config }; + + config.contactEventsEnabled = config.contactAddedEventsEnabled || + config.contactPersistedEventsEnabled || config.contactRemovedEventsEnabled; + this._config = config; this._dispatcher = messenger; this._time = 0;