Animation made easy
There are three newly created animation commands (SPIN, TRAVEL and ORIENT), which make 3D animation really easy. I created these after contemplating for a long time. You may have some suggestions for me to improve or change these commands. If so, please reply to this thread.
1. SPIN: The SPIN command spins an object (or objects within a transform object) on an asix.
Syntax: SPIN id direction cycleInterval
Description: Spin object with id as id, in one of the six axes directions as direction, with a loop cycleInterval. The direction is a Logo word and only in the twelve: right, rt, left, lt, tiltright, tr, tiltleft, tl, rollup, ru, rolldown, rd. The cycleInterval must be a non-zero positive number.
Example:
CS BOX ; create a box with id obj_0 SPIN "obj_0 "right 10 ; spin the box in the right turn direction with a 10 second cycle
2. TRAVEL: Travel an object according to a given path (a set of coordinates).
Syntax: TRAVEL id path cycleInterval
Description: Make the object id travel along a path. The path is a Logo list containing at least two coordinates. The cycleInterval specify the cycle time in seconds to travel.
Example:
CS BOX ; create a box with id obj_0 TRAVEL "obj_0 [ [0 0 0] [0 1 0] [0 0 0] ] 10 ; The box travels from (0,0,0) to (0,1,0) then back to (0,0,0) linearly with a 10 second cycle
3. ORIENT: Orient an object according to a given set of directions. This is a more complex and flexible way of changing orientation of objects than SPIN command.
Syntax: ORIENT id directions cycleInterval
Description: Make the object id orient with the given directions. The directions is a Logo list containing at least two directions. The cycleInterval specify the cycle time in seconds to orient.
Example:
CS BOX ; create a box with id obj_0 ORIENT "obj_0 [ [0 0 1 0] [0 -1 0 1.5708 ] [0 0 1 0] ] 10 ; The box orients (rotates) from (0,0,1,0) to (0,-1,0,1.5708) (right 90) then back to (0,0,1,0) linearly with a 10 second cycle
To remove these animation, you can use the following associated commands:
- removespin id
rmspin id - Remove the spin animation on object id.
- removetravel id
rmtravel id - Remove the travel animation on object id.
- removeorient id
rmorient id - Remove the orient animation on object id.
Ideas anyone?
Thank you for sharing such useful animation commands!
I have already tried to use them, and I created animation much easy.
Regards,
Carol
I really like the travel command. I can see myself using it.