public void Move()
{
direction = new Vector2((float)Math.Cos(rotationAngle), (float)Math.Sin(rotationAngle));
direction.Normalize();
if (speed <= maxSpeed)
{
speed += 0.1F;
}
if (speed > maxSpeed)
{
speed = maxSpeed;
}
playerPos = playerPos + (direction * speed);
oldDirection = direction;
}