diff --git a/addons/godot-next/3d/trail_3d.gd b/addons/godot-next/3d/trail_3d.gd index a167764..fe313d5 100644 --- a/addons/godot-next/3d/trail_3d.gd +++ b/addons/godot-next/3d/trail_3d.gd @@ -56,7 +56,7 @@ func render_trail(): #begin(Mesh.PRIMITIVE_LINE_STRIP) var local_points = [] for p in points: - local_points.append(p - global_transform.origin) + local_points.append(to_local(p)) var last_p = Vector3() var verts = [] var ind = 0