Because (draw-*) does not retain state, whereas (build-*) does you are rotating your cube (* 45 0.01) degrees every frame. After each frame the cube is removed and then reset back to a rotation of zero.
If you want to use stateless primitives you should use (time). Hope that helps :) Chris Targett On Sat, Nov 6, 2010 at 10:22 AM, Luis navarro del angel <[email protected]> wrote: > > Hi, > > When I use (delta) with (draw*) instead of (build*) it doesn't work, why > does this happen? I think that the reason of this is that the (draw*) > command needs to be refreshed every-frame and the (build*) one doesn't. > > ex. > > (clear) > (define (cube) > (rotate (* 45 (delta)) 0 0)) > (draw-cube)); draw instead of build > (every-frame (cube)) > > And I understand that (delta) makes the time between each frame to be > constant. But this will not be the same time for the (draw-cube) part. > I hope this make some sense. > > Thanks, > > Luis >
