Lionheart008
18-11-2010, 14:01
hello all. I wanted only to know what's possible to reset a rotated object (here axisfork or torus) to zero or original position ? I have made to rotate some objects (push move/stop button). I can reset the pushed objects to zero or original position, but not my axis fork or the rotated torus. my idea was to reset all objects in their original (TBGL_EntitySetPos) Position that works for pushed objects only. See second picture with this problem
If StartStop 0 Then TBGL_EntityTurn(%sScene, %eBox, 0, 40/FrameRate, 0) TBGL_EntityPush(%sScene, %eFloor, 0.02, 0, 0) TBGL_EntityTurn(%sScene, %eTorus, 10/FrameRate, 0, 0 ) 'TBGL_EntityTurn(%sScene, %eMyAxislist, 0, 20/FrameRate, 0) TBGL_EntityPush(%sScene, %eSphere1, 0, 0.02, 0.01) TBGL_EntityPush(%sScene, %eBox, 0, 0.025, -0.01) EndIf '------------------------------> reset for position If resetall 0 Then '... TBGL_EntitySetPos(%sScene, %eBox, 0.8, 1.1, 0.8) TBGL_EntitySetPos(%sScene, %eMyAxislist, 0, -0.5, 0) TBGL_EntitySetPos(%sScene, %eMyAxislist, 0, 0, 0) TBGL_EntitySetPos(%sScene, %eFloor, 0, -4, 0) TBGL_EntitySetPos(%sScene, %eSphere1, 4, 0.55, 1) 'TBGL_EntityPush(%sScene, %eTorus, 0, 0.5, 0 ) TBGL_EntitySetPos(%sScene, %eTorus, -4, -1, -1 ) End If any help would be nice, best regards, frank
ps: project attached as zipfile
pps: I have problems to show code tags (in editpost) correctly here at the forum ;(
the second line below fonts, size, A(textcolor), smileys... didn't work at all for me
If StartStop 0 Then TBGL_EntityTurn(%sScene, %eBox, 0, 40/FrameRate, 0) TBGL_EntityPush(%sScene, %eFloor, 0.02, 0, 0) TBGL_EntityTurn(%sScene, %eTorus, 10/FrameRate, 0, 0 ) 'TBGL_EntityTurn(%sScene, %eMyAxislist, 0, 20/FrameRate, 0) TBGL_EntityPush(%sScene, %eSphere1, 0, 0.02, 0.01) TBGL_EntityPush(%sScene, %eBox, 0, 0.025, -0.01) EndIf '------------------------------> reset for position If resetall 0 Then '... TBGL_EntitySetPos(%sScene, %eBox, 0.8, 1.1, 0.8) TBGL_EntitySetPos(%sScene, %eMyAxislist, 0, -0.5, 0) TBGL_EntitySetPos(%sScene, %eMyAxislist, 0, 0, 0) TBGL_EntitySetPos(%sScene, %eFloor, 0, -4, 0) TBGL_EntitySetPos(%sScene, %eSphere1, 4, 0.55, 1) 'TBGL_EntityPush(%sScene, %eTorus, 0, 0.5, 0 ) TBGL_EntitySetPos(%sScene, %eTorus, -4, -1, -1 ) End If any help would be nice, best regards, frank
ps: project attached as zipfile
pps: I have problems to show code tags (in editpost) correctly here at the forum ;(
the second line below fonts, size, A(textcolor), smileys... didn't work at all for me