From a5729684d17bedc126ad8bd3ee779e3775babdc8 Mon Sep 17 00:00:00 2001 From: liabru Date: Fri, 5 Aug 2022 16:27:47 +0100 Subject: [PATCH] remove unused delta params --- src/core/Engine.js | 16 ++++++++-------- src/core/Sleeping.js | 3 +-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/core/Engine.js b/src/core/Engine.js index c736e6d..788fe54 100644 --- a/src/core/Engine.js +++ b/src/core/Engine.js @@ -144,7 +144,7 @@ var Body = require('../body/Body'); // wake up bodies involved in collisions if (engine.enableSleeping) - Sleeping.afterCollisions(pairs.list, delta); + Sleeping.afterCollisions(pairs.list); // iteratively resolve position between collisions Resolver.preSolvePosition(pairs.list); @@ -435,7 +435,7 @@ var Body = require('../body/Body'); /** * A `Number` that specifies the current simulation-time in milliseconds starting from `0`. * It is incremented on every `Engine.update` by the given `delta` argument. - * + * * @property timing.timestamp * @type number * @default 0 @@ -446,7 +446,7 @@ var Body = require('../body/Body'); * It is updated by timing from the start of the last `Engine.update` call until it ends. * * This value will also include the total execution time of all event handlers directly or indirectly triggered by the engine update. - * + * * @property timing.lastElapsed * @type number * @default 0 @@ -454,7 +454,7 @@ var Body = require('../body/Body'); /** * A `Number` that represents the `delta` value used in the last engine update. - * + * * @property timing.lastDelta * @type number * @default 0 @@ -516,15 +516,15 @@ var Body = require('../body/Body'); */ /** - * The gravity x component. - * + * The gravitational direction normal `x` component, to be multiplied by `gravity.scale`. + * * @property gravity.x * @type object * @default 0 */ /** - * The gravity y component. + * The gravitational direction normal `y` component, to be multiplied by `gravity.scale`. * * @property gravity.y * @type object @@ -533,7 +533,7 @@ var Body = require('../body/Body'); /** * The magnitude of the gravitational acceleration. - * + * * @property gravity.scale * @type object * @default 0.001 diff --git a/src/core/Sleeping.js b/src/core/Sleeping.js index b9b4512..17d10bc 100644 --- a/src/core/Sleeping.js +++ b/src/core/Sleeping.js @@ -63,9 +63,8 @@ var Common = require('./Common'); * Given a set of colliding pairs, wakes the sleeping bodies involved. * @method afterCollisions * @param {pair[]} pairs - * @param {number} delta */ - Sleeping.afterCollisions = function(pairs, delta) { + Sleeping.afterCollisions = function(pairs) { var motionSleepThreshold = Sleeping._motionSleepThreshold; // wake up bodies involved in collisions