I want to draw the trajectory of a golf ball as a smooth 3D line. Any idea how one would do this? Example below.
Function Line3D(mesh,x0#,y0#,z0#,x1#,y1#,z1#) If mesh = 0 mesh = CreateMesh() surf = CreateSurface(mesh) EntityFX mesh,1+16 Else lastsurf = CountSurfaces(mesh) surf = GetSurface(mesh,lastsurf) If CountVertices(surf)>30000 surf = CreateSurface(mesh) EndIf End If v0 = AddVertex(surf,x0,y0,z0) v1 = AddVertex(surf,x1,y1,z1) v2 = AddVertex(surf,(x0+x1)*0.5,(y0+y1)*0.5,(z0+z1)*0.5) AddTriangle surf,v0,v1,v2 Return mesh End Function