All of raycasts happen before or after scene render & physics simulation in my game loop, and aren't visible when debug renderer is turned on.
So, my question is, how do I make the rays visible for at least few frames? It would be really helpful to see what was actually hit by the ray.
Debug draw the raycast
-
- Posts: 4
- Joined: Wed Dec 18, 2013 5:23 pm
Re: Debug draw the raycast
you could always draw the debug ray manually if you want to debug it
getWorld()->getDebugDrawer()->drawLine()
getWorld()->getDebugDrawer()->drawLine()