Roxside / jbox2d

Automatically exported from code.google.com/p/jbox2d
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Raycast problem #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In the updating code, perform a raycast.
2.
3.

What is the expected output? What do you see instead?
Raycast should work, random failures happen.

What version of the product are you using? On what operating system?

Please provide any additional information below.
Fix:
in AABB class in collision package change method
public final void getExtentsToOut(final Vec2 out) {
        out.x = (upperBound.x - lowerBound.x) * .5f;
        out.x = (upperBound.y - lowerBound.y) * .5f;
    }
to
public final void getExtentsToOut(final Vec2 out) {
        out.x = (upperBound.x - lowerBound.x) * .5f;
        out.y = (upperBound.y - lowerBound.y) * .5f;
    }

Original issue reported on code.google.com by FDN1...@gmail.com on 27 Apr 2011 at 9:35

GoogleCodeExporter commented 9 years ago
Thanks for this, making the changes now.

Original comment by toucansa...@gmail.com on 28 May 2011 at 5:43

GoogleCodeExporter commented 9 years ago

Original comment by toucansa...@gmail.com on 28 May 2011 at 5:55