draw_debug
Draw temporary debug lines, polylines, spheres, or point crosses in the viewport for a set duration to visualize positions and paths during simulation or scene inspection.
Instructions
Draw debug lines in the viewport, 2 pixels wide, for duration seconds: a line, a polyline, a sphere as
three crossing lines, or a small cross per point.
Isaac Sim draws with isaacsim.util.debug_draw, turned on at the first call. Its clear takes every line drawn
with it, so when a drawing expires, lines other code drew with it go too. Other Kit apps draw with
omni.debugdraw when they have it. A new stage drops the old one's drawings.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | For "line": its end [x, y, z] | |
| size | No | For "points": how far each point's cross reaches, in stage units | |
| color | No | [r, g, b] colour in 0-1; red when omitted | |
| shape | Yes | What to draw: "lines" joins the points in order | |
| start | No | For "line": its start [x, y, z] | |
| center | No | For "sphere": its centre [x, y, z] | |
| points | No | For "points" and "lines": a list of [x, y, z] | |
| radius | No | For "sphere": its radius | |
| duration | No | How long it shows, in seconds from the call, whether the simulation plays or not |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |