Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Suleymanov |
I used to _draw()
Path2D and the control points in 2D games like:
func _draw():
draw_polyline($Path.curve.get_baked_points(), Color.red, 2, true)
for p in $Path.curve.get_point_count():
draw_circle($Path.curve.get_point_position(p), 8, Color.red)
update()
Obviously, it doesn’t work in 3D games. What is the equivalent of that in 3D?
In other words, I want the Path curve and control points to be visible in Play Mode. How can that be achieved?
Thank you for your time!