free-language / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

World querying issues using: void RayCast(b2RayCastCallback* callback, const b2Vec2& point1, const b2Vec2& point2); #330

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the source code on the testbed

2. On my computer one the angles in which the raycast fails is "float 
currRayAngle =  2.078693". Please see attached code.

3.

What is the expected output? What do you see instead?
The ray should hit the box all the time, but it does it intermittently.

What version of the product are you using? On what operating system?
Box2D_v2.1.2 / LMDE 64bits / gcc (Debian 4.8.2-1) 4.8.2

Please provide any additional information below.
The attached code can be run on the testbed. This is a slightly modified 
version from:
http://www.iforce2d.net/b2dtut/raycasting

Triple forward slashes are my comments.

A video:
http://www.youtube.com/watch?v=qcMB0oMvX5o

Original issue reported on code.google.com by srava...@gmail.com on 16 Feb 2014 at 3:17

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Old version of Box2D. ReportFixture should return the fraction.

Original comment by erinca...@gmail.com on 5 Apr 2014 at 8:36