In my game I have a Nurbs curve in the XY plane. I have a rigged car, that has a
follow path constraint, so that it follows this curve.
I would like to make the Nurbs curve behave like a snake in the snake game. The snake should move by extending its head and cutting off its tail. When the player presses the 'up' arrow, the head should extend forward and the tail should be cut off. When the player presses the 'right' arrow, than the head should make a turn to the right, and idem for the 'left' arrow.
Is it possible to do that? In the pictures, the dots are the vertices of the Nurbs curve. I can give more details if necessary. Thanks :)
Examples of the curve turning to the left, the right, and moving straight: