   Relaxing a trail
  Hi Guys,I have this point moving in my 3d world. Behind the point I build up a trail of its previous orientations and rotations. This enables me to draw its trail, giving a rough outline of a snake.This works fine when my point only turns while moving, but breaks when the point changes direction instantly. It looks un-snake-like. I am wondering if anyone could suggest a good way to "relax" the list of points and orientations in the trail, while keeping the end positions and rotations intact.Thanx in advance./TAX   
  What about using the points as control points for a spline? There are various flavours of spline that have different properties, but you could look into Bezier, Hermite and Catmull-Rom splines as a starting point.   ;  If you want to smoothly turn your point, you can use some simple trigonometry.// Get some input and change the snakehead's angleif(left key is held)  { angle-= 1; }if(right key is held) { angle+= 1; }// pointX & pointY is the "head"'s positionpointX += sin(angle) * snakeSpeedpointY += cos(angle) * snakeSpeed;  The trail "breaks when the point changes direction instantly". What this means can only be guessed, but if direction changes create corners the trail particles can be moved to smooth them out over time.For example, each particle can move towards the midpoint of the previous and next particles and turn towards the average of their orientations (use matrices or quaternions). A more involved physical simulation can simulate a snake which maintains a fixed length and has elastic forces that try to straighten its body.