Debug draw the raycast

User avatar
Haddayn
Posts: 1
Joined: Thu Jul 31, 2014 12:23 am

Debug draw the raycast

Post by Haddayn »

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.
aked
Posts: 4
Joined: Wed Dec 18, 2013 5:23 pm

Re: Debug draw the raycast

Post by aked »

you could always draw the debug ray manually if you want to debug it
getWorld()->getDebugDrawer()->drawLine()