Skip to content

Commit 1e628c1

Browse files
committed
Fixed bias setting.
1 parent 08a2c1f commit 1e628c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/physics/arcade/inc/GetOverlapY.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
var GetOverlapY = function (body1, body2, overlapOnly)
1+
var GetOverlapY = function (body1, body2, overlapOnly, bias)
22
{
33
var overlap = 0;
4-
var maxOverlap = body1.deltaAbsY() + body2.deltaAbsY() + this.OVERLAP_BIAS;
4+
var maxOverlap = body1.deltaAbsY() + body2.deltaAbsY() + bias;
55

66
if (body1.deltaY() === 0 && body2.deltaY() === 0)
77
{

0 commit comments

Comments
 (0)