Skip to content

Commit

Permalink
fix: Bug where composite collider offset was undefined if unset
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Jan 3, 2024
1 parent c237005 commit c266288
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- Fixed issue where `CompositeCollider` offset was undefined if not set
- Fixed Actor so it receives `predraw`/`postdraw` events per the advertised strongly typed events
- Fixed infinite loop :bomb: when certain degenerate polygons were attempted to be triangulated!
- Fixed incorrect type on `ex.Tilemap.getTileByPoint()`
Expand Down
2 changes: 1 addition & 1 deletion src/engine/Collision/Colliders/Collider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export abstract class Collider implements Clonable<Collider> {
* Pixel offset of the collision collider relative to the collider, by default (0, 0) meaning the collider is positioned
* on top of the collider.
*/
offset: Vector;
offset: Vector = Vector.Zero;

/**
* Position of the collision collider in world coordinates
Expand Down

0 comments on commit c266288

Please sign in to comment.