Skip to content

Commit

Permalink
chore: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Jan 6, 2024
1 parent e8daee8 commit 9622479
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sandbox/src/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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')
}
}

Expand Down
10 changes: 5 additions & 5 deletions src/engine/Actor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
*/
Expand Down

0 comments on commit 9622479

Please sign in to comment.