From 962247987884aec0a40449c773618136186ba7cc Mon Sep 17 00:00:00 2001 From: Erik Onarheim Date: Fri, 5 Jan 2024 19:58:12 -0600 Subject: [PATCH] chore: typos --- sandbox/src/game.ts | 4 ++-- src/engine/Actor.ts | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sandbox/src/game.ts b/sandbox/src/game.ts index ca2cc168f..be70c5764 100644 --- a/sandbox/src/game.ts +++ b/sandbox/src/game.ts @@ -50,7 +50,7 @@ var game = new ex.Engine({ pointerScope: ex.PointerScope.Canvas, displayMode: ex.DisplayMode.FitScreenAndFill, snapToPixel: false, - fixedUpdateFps: 60, + fixedUpdateFps: 30, maxFps: 60, configurePerformanceCanvas2DFallback: { allow: true, @@ -597,7 +597,7 @@ class OtherActor extends ex.Actor { console.log('other collision start') } onCollisionEnd(self: ex.Collider, other: ex.Collider): void { - console.log('other collision start') + console.log('other collision end') } } diff --git a/src/engine/Actor.ts b/src/engine/Actor.ts index ac7b22b4c..55ec6b3ec 100644 --- a/src/engine/Actor.ts +++ b/src/engine/Actor.ts @@ -879,7 +879,7 @@ export class Actor extends Entity implements Eventable, PointerEvents, CanInitia } /** - * Fires every frame before collision resolution for a confirmed contact + * Fires before every collision resolution for a confirmed contact * @param self * @param other * @param side @@ -890,7 +890,7 @@ export class Actor extends Entity implements Eventable, PointerEvents, CanInitia } /** - * Fires every after collision resolution for a confirmed contact. + * Fires after every resolution for a confirmed contact. * @param self * @param other * @param side @@ -901,8 +901,8 @@ export class Actor extends Entity implements Eventable, PointerEvents, CanInitia } /** - * Fires once when 2 objects first start colliding or touching, if the objects stay in contact this does not continue firing - * until they separate and re-collide. + * Fires once when 2 entities with a ColliderComponent first start colliding or touching, if the Colliders stay in contact this + * does not continue firing until they separate and re-collide. * @param self * @param other * @param side @@ -913,7 +913,7 @@ export class Actor extends Entity implements Eventable, PointerEvents, CanInitia } /** - * Fires once when 2 objects separate after having been in contact. + * Fires once when 2 entities with a ColliderComponent separate after having been in contact. * @param self * @param other */