Skip to content

Commit

Permalink
Simplify condition in LocalRayCast for spheres
Browse files Browse the repository at this point in the history
  • Loading branch information
notgiven688 committed Aug 19, 2024
1 parent 791e5c0 commit b6935fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jitter2/Collision/Shapes/SphereShape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public override bool LocalRayCast(in JVector origin, in JVector direction, out J
return true;
}

return MathF.Max(t0, t1) > 0.0f;
return t1 > 0.0f;
}

public override void CalculateMassInertia(out JMatrix inertia, out JVector com, out float mass)
Expand Down

0 comments on commit b6935fa

Please sign in to comment.