Seeing raycast in debug physics mode (SOLVED)

Hello,

I’d like to know it it’s possible, when physics debug mode is on, to show on screen the raycasts defined in update with physics.raycast( … ).

I’ve made a search in the forum, but didn’t found similar requests. I think it’s possible, as the normals are showed in the debug mode, but i’m not sure…

Thank you for reading :slight_smile:

No, it’s not possible, but you can easily draw the rays with ”draw_line”: https://www.defold.com/ref/render/#draw_line

4 Likes

Perfect! Thank you.

1 Like