You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the for loop iterates over both "x" and "y" to analyze the directions along the x-axis and y-axis.
However, at line 209,
if(absD.x<EPSILON){
...
}
it appears that only the value of absD in the x-axis direction is being considered.
I've examined the source code of Box2D, specifically the b2AABB.prototype.RayCast function definition. In it, there are checks for both directions of absD to see if they are less than Number.MIN_VALUE.
Within the
rayCast
function definition in theAABB.ts
file, around line196
:In this section,
the
for
loop iterates over both "x" and "y" to analyze the directions along the x-axis and y-axis.However, at line 209,
it appears that only the value of absD in the x-axis direction is being considered.
I've examined the source code of
Box2D
, specifically theb2AABB.prototype.RayCast
function definition. In it, there are checks for both directions ofabsD
to see if they are less thanNumber.MIN_VALUE
.I'm thinking that in Planck, we should modify line
209
ofAABB.ts
toif (absD[f] < EPSILON)
.I'm not sure if this is the correct approach.
The text was updated successfully, but these errors were encountered: