Skip to content

Commit

Permalink
Fix raycast test. (#6763)
Browse files Browse the repository at this point in the history
Do not show in changelog
  • Loading branch information
D8H authored Jul 10, 2024
1 parent 3c34a88 commit acce714
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GDJS/tests/tests/runtimeobject.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ describe('gdjs.RuntimeObject', () => {
farX: 22,
farY: 30,
farSqDist: 544,
edgeX: 10,
edgeY: 0,
});

// Raycast beyond the object, still colliding with it:
Expand All @@ -209,6 +211,8 @@ describe('gdjs.RuntimeObject', () => {
farX: 30,
farY: 30,
farSqDist: 800,
edgeX: 10,
edgeY: 0,
});

// Raycast with an end point far beyond the object, still colliding with it:
Expand All @@ -221,6 +225,8 @@ describe('gdjs.RuntimeObject', () => {
farX: 30,
farY: 30,
farSqDist: 800,
edgeX: 10,
edgeY: 0,
});

// Vertical raycast, far from the origin:
Expand Down

0 comments on commit acce714

Please sign in to comment.