Animation

I have a robot that moves its arms and itself when the user presses certain keys,

I need to do a ten second animation displaying all of his moves when a certain key is pressed, this means running through a sequence of moves. any ideas on how to do this? or a good tutorial to help?

Cheers,

Steve

The exact implementation will depends on what tool you want to use to create you robot’s positions. How will you store the postions ? Hard-wired in the code ? On a text or binary file ?

Then, it is just a matter of interpolationg between the different positions, according to time.

Search using those keywords :

  • lerp (for linear interpolation of positions)
  • interpolation quaternion rotations (for the rotations)
  • spline interpolation , etc

Hope it will get you on tracks.