for f in $Path.curve.get_point_count():
if $Path.curve.get_point_position(f).distance_to(touchPos) < 5:
$Path.curve.set_point_position(f, touchPos)
Basically, I move the curve handles around to reshape the curve in play mode. In order to see the curve I set the circle meshes positions (or translations) to baked points and handles positions. And it works well and visible except, it only shows the new result when I reload the scene. It doesn't update every frame. In 2D I used update()
. What's the 3D equivalent of that?
Thank you for your time!