Here is my code:
Dim Node1 As MTV3D65.TVNode
Node1 = Scene.CreateNode("Node1")
Node1.SetParent(MTV3D65.CONST_TV_NODETYPE.TV_NODETYPE_MESH, PlayerArray(currentIdentifier).mesh.GetIndex, 0)
Node1.SetPosition(0, 0, 300)
However, when I draw the 3dline, the line draws itself to coordinate (0,0,300) rather than 300 units in front of my ship.
I see that the code you showed me is for vb6. Is there any difference in using it in VB2010 with TV6.5?
The y coordinate of the line is both the same for the source and destination coordinate. Because of this, am I correct in saying I can just calculate using 2d maths with trig?
I have tried this, yet it doesn't work:
x = start_x + len * cos(angle);
z = start_z + len * sin(angle);
thanks
Canning