Farseer 3: Raycast not working as expected

Topics: User Forum
Jul 18, 2010 at 7:49 PM

It seems the raycast is using the fattened AABB's (the pink ones in the DebugViewXNA) so that I am getting hits for objects that the raycast is actually not hitting.

I am using Raycasts for making an in-air-check of a character. When I am near a wall and the fattened AABB's overlap, then I am able to make triple-jumps, though my character is not supposed to be able to jump when being in mid-air.

Is this by design?

Thanks for the help.

Developer
Jul 18, 2010 at 11:39 PM

Code would be helpful, but I think I know what the problem is. Are you RayCasting the whole world? If so you must also RayCast the fixtures returned by Raycasting the world.