Lionheart008
03-12-2008, 16:54
dear thinbasic friends... dear petr, hi all :)
short question: I would like to create a simple tbgl entity checkerboard floor (german: Schabrettboden) and ask myself if there is any formula for the entity or copy or translate function to build 64 boxes ... uff... otherwise I can make all the position by hand :D
' -- Create something to look at
TBGL_EntityCreateBox(%sScene, %eBox, 0, 1.25, 0.25, 1.5, 1, 55, 55, 55)
TBGL_EntitySetPos(%sScene, %eBox, 2, 1, 1)
TBGL_EntityCreateBox(%sScene, %eBox1, 0, 1.25, 0.25, 1.5, 1, 255, 255, 55)
TBGL_EntitySetPos(%sScene, %eBox1, 2, 1, -0.6)
TBGL_EntityCreateBox(%sScene, %eBox2, 0, 1.25, 0.25, 1.5, 1, 255, 5, 5)
TBGL_EntitySetPos(%sScene, %eBox2, 0.6, 1, 1)
TBGL_EntityCreateBox(%sScene, %eBox3, 0, 1.25, 0.25, 1.5, 1, 25, 55, 255)
TBGL_EntitySetPos(%sScene, %eBox3, 0.6, 1, -0.6)
TBGL_EntityCreateBox(%sScene, %eBox4, 0, 1.25, 0.25, 1.5, 1, 255, 55, 55)
TBGL_EntitySetPos(%sScene, %eBox4, -0.8, 1, -0.6)
TBGL_EntityCreateBox(%sScene, %eBox5, 0, 1.25, 0.25, 1.5, 1, 255, 255, 255)
TBGL_EntitySetPos(%sScene, %eBox5, -0.8, 1, 1)
TBGL_EntityCreateBox(%sScene, %eBox6, 0, 1.25, 0.25, 1.5, 1, 80, 25, 255)
TBGL_EntitySetPos(%sScene, %eBox6, -0.75, 1, -2.25)
TBGL_EntityCreateBox(%sScene, %eBox7, 0, 1.25, 0.25, 1.5, 1, 255, 0, 255)
TBGL_EntitySetPos(%sScene, %eBox7, 0.6, 1, -2.25)
TBGL_EntityCreateBox(%sScene, %eBox8, 0, 1.25, 0.25, 1.5, 1, 255, 250, 255)
TBGL_EntitySetPos(%sScene, %eBox8, 2, 1, -2.25)
hmh... I can make it, but perhaps somebody has done it before me??? :)
best regards, Lionheart
short question: I would like to create a simple tbgl entity checkerboard floor (german: Schabrettboden) and ask myself if there is any formula for the entity or copy or translate function to build 64 boxes ... uff... otherwise I can make all the position by hand :D
' -- Create something to look at
TBGL_EntityCreateBox(%sScene, %eBox, 0, 1.25, 0.25, 1.5, 1, 55, 55, 55)
TBGL_EntitySetPos(%sScene, %eBox, 2, 1, 1)
TBGL_EntityCreateBox(%sScene, %eBox1, 0, 1.25, 0.25, 1.5, 1, 255, 255, 55)
TBGL_EntitySetPos(%sScene, %eBox1, 2, 1, -0.6)
TBGL_EntityCreateBox(%sScene, %eBox2, 0, 1.25, 0.25, 1.5, 1, 255, 5, 5)
TBGL_EntitySetPos(%sScene, %eBox2, 0.6, 1, 1)
TBGL_EntityCreateBox(%sScene, %eBox3, 0, 1.25, 0.25, 1.5, 1, 25, 55, 255)
TBGL_EntitySetPos(%sScene, %eBox3, 0.6, 1, -0.6)
TBGL_EntityCreateBox(%sScene, %eBox4, 0, 1.25, 0.25, 1.5, 1, 255, 55, 55)
TBGL_EntitySetPos(%sScene, %eBox4, -0.8, 1, -0.6)
TBGL_EntityCreateBox(%sScene, %eBox5, 0, 1.25, 0.25, 1.5, 1, 255, 255, 255)
TBGL_EntitySetPos(%sScene, %eBox5, -0.8, 1, 1)
TBGL_EntityCreateBox(%sScene, %eBox6, 0, 1.25, 0.25, 1.5, 1, 80, 25, 255)
TBGL_EntitySetPos(%sScene, %eBox6, -0.75, 1, -2.25)
TBGL_EntityCreateBox(%sScene, %eBox7, 0, 1.25, 0.25, 1.5, 1, 255, 0, 255)
TBGL_EntitySetPos(%sScene, %eBox7, 0.6, 1, -2.25)
TBGL_EntityCreateBox(%sScene, %eBox8, 0, 1.25, 0.25, 1.5, 1, 255, 250, 255)
TBGL_EntitySetPos(%sScene, %eBox8, 2, 1, -2.25)
hmh... I can make it, but perhaps somebody has done it before me??? :)
best regards, Lionheart