[SOLVED] JBox2D Raycast: I just can't pull it off

Hi JGO. I have been looking for JBox2D raycast tutorials but all I find is C++ tutorials (I know you will say “just use the same code but in java”).

All i’m asking for is a clear, easy, and fast java box2d raycast tutorial because every java raycast tutorial I found was just not exactly what I expected to be.

Hope you can help this lost coder.

Thank you.

Sorry if this is too complicated, but I found this a long time ago.

http://pastebin.com/QbhwPNqn
Source: http://www.youtube.com/watch?v=9fow5YWdR-U

I’d say your best option off that is to use GLSL Shaders.

Thank you Spacebeans but I already pull it off thanks to a Dermetfan tutorial.

Link it for others :slight_smile:

You are right.

Dermetfan raycasting tutorial: http://www.youtube.com/watch?v=CqCz13qWd7A