Skip to content

Commit a572968

Browse files
committed
remove unused delta params
1 parent 50fc8f2 commit a572968

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

src/core/Engine.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ var Body = require('../body/Body');
144144

145145
// wake up bodies involved in collisions
146146
if (engine.enableSleeping)
147-
Sleeping.afterCollisions(pairs.list, delta);
147+
Sleeping.afterCollisions(pairs.list);
148148

149149
// iteratively resolve position between collisions
150150
Resolver.preSolvePosition(pairs.list);
@@ -435,7 +435,7 @@ var Body = require('../body/Body');
435435
/**
436436
* A `Number` that specifies the current simulation-time in milliseconds starting from `0`.
437437
* It is incremented on every `Engine.update` by the given `delta` argument.
438-
*
438+
*
439439
* @property timing.timestamp
440440
* @type number
441441
* @default 0
@@ -446,15 +446,15 @@ var Body = require('../body/Body');
446446
* It is updated by timing from the start of the last `Engine.update` call until it ends.
447447
*
448448
* This value will also include the total execution time of all event handlers directly or indirectly triggered by the engine update.
449-
*
449+
*
450450
* @property timing.lastElapsed
451451
* @type number
452452
* @default 0
453453
*/
454454

455455
/**
456456
* A `Number` that represents the `delta` value used in the last engine update.
457-
*
457+
*
458458
* @property timing.lastDelta
459459
* @type number
460460
* @default 0
@@ -516,15 +516,15 @@ var Body = require('../body/Body');
516516
*/
517517

518518
/**
519-
* The gravity x component.
520-
*
519+
* The gravitational direction normal `x` component, to be multiplied by `gravity.scale`.
520+
*
521521
* @property gravity.x
522522
* @type object
523523
* @default 0
524524
*/
525525

526526
/**
527-
* The gravity y component.
527+
* The gravitational direction normal `y` component, to be multiplied by `gravity.scale`.
528528
*
529529
* @property gravity.y
530530
* @type object
@@ -533,7 +533,7 @@ var Body = require('../body/Body');
533533

534534
/**
535535
* The magnitude of the gravitational acceleration.
536-
*
536+
*
537537
* @property gravity.scale
538538
* @type object
539539
* @default 0.001

src/core/Sleeping.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ var Common = require('./Common');
6363
* Given a set of colliding pairs, wakes the sleeping bodies involved.
6464
* @method afterCollisions
6565
* @param {pair[]} pairs
66-
* @param {number} delta
6766
*/
68-
Sleeping.afterCollisions = function(pairs, delta) {
67+
Sleeping.afterCollisions = function(pairs) {
6968
var motionSleepThreshold = Sleeping._motionSleepThreshold;
7069

7170
// wake up bodies involved in collisions

0 commit comments

Comments
 (0)