Create a simple line between 2 bodies?

Blitz3D Forums/Blitz3D Beginners Area/Create a simple line between 2 bodies?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Something like this ...


Pivot1 = createpivot()
positionentity Pivot1, -10,10,10
Pivot2 = createpivot()
positionentity Pivot2, 10,-10,10

3dLine( Pivot1 , Pivot2 )

;==========================

Function 3dLine( P1, P2 , Thickness# = 1.0 )

  Line = createcylinder()
  rotatemesh Line, 90,0,0
  fitmesh Line, -1,-1,0,2,2,1
  
  entityparent Line, P1
  positionentity Line, 0,0,0
  pointentity P1, P2
  scaleentity Line, Thickness, Thickness , entitydistance( P1, P2 )

End Function