Skip to content

Commit

Permalink
do not terminate loop if mask mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
minggo committed Oct 10, 2024
1 parent b68e98b commit 9e33ea4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class PhysicsRayCastCallback extends b2.RayCastCallback {
this._fractions.length = 0;
}

ReportFixture (fixture: b2.Fixture, point: B2.Vec2, normal: B2.Vec2, fraction: number): any {
ReportFixture (fixture: b2.Fixture, point: B2.Vec2, normal: B2.Vec2, fraction: number): number {
if ((fixture.GetFilterData().categoryBits & this._mask) === 0) {
return -1;
}
Expand Down

0 comments on commit 9e33ea4

Please sign in to comment.