Movement Vectors - Simple Physics (3)

Some Code:


  if(space) // Accelerate in currect direction
      speed = speed + direction*0.01;
  if(left)  // Turn left
      direction = (new SFRotation(0,1,0, 0.1)).
                   multVec(direction);
  if(right) // Turn right
      direction = (new SFRotation(0,1,0,-0.1)).
                   multVec(direction);
  position = position + speed;