Hi,
does anybody know a easy way to create a simple line between 2 bodies, or pivots in a 3 dimensional world?
does anybody know a easy way to create a simple line between 2 bodies, or pivots in a 3 dimensional world?
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
CameraProject camera,EntityX(Ent1),EntityY(Ent1),EntityZ(Ent1) TMP_X1# = ProjectedX() TMP_Y1# = ProjectedY() CameraProject camera,EntityX(Ent2),EntityY(Ent2),EntityZ(Ent2) TMP_X2# = ProjectedX() TMP_Y2# = ProjectedY() Line TMP_X2,TMP_Y2,TMP_X1,TMP_Y1