[Fluxus] delta

Tomas Neme lacrymology at gmail.com
Fri Nov 5 15:01:04 PDT 2010


Luis, when you call (rotate ()) on a primitive, the rotation you
provide is added to the object's previous rotation. So when you call
rotate with delta every frame on a built primitive, you're adding a
factor of delta to it's rotation every frame. (delta) returns the time
passed since last frame, so you can use it to factor the velocity of
your rotations, which is always very similar, if you have regular
framerate (1/fps).

a (draw-*) primitive is created every frame with an Identity
transform, so you're rotating it every frame by 45*(delta) which is
about the same every frame. What you want to do with draw-*ned
primitives is to use (time) instead of (delta), or to define a
variable to store the accumulated (delta), if that's what you need to
do.

Tomas

--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.



More information about the Fluxus mailing list