Wednesday, June 2, 2021

Walk and Turn Cycles

(I forgot to post this yesterday)
Hello, June! 8-P I want to create a walk cycle where we alternately move the farthest foot a little bit towards the destination, then when the nearest now becomes the farthest, move that one. The only problem with this is that my peep might be walking backwards. So therefore if the peep is facing away, we need to turn the peep around and we need to develop a turn cycle to change the facing. The peep is facing the destination if the head is closer than the center of the peep, and facing away if the head is farther away than the center of the peep. If facing away, we turn the peep by moving the nearest foot towards the rear of the peep and the farthest foot towards the head of the peep until the head is nearer to the destination than the center of the peep, when we can stop the turn cycle and start the walk cycle, moving only the farthest foot with each iteration of the animation loop. One thing which I still need to do is figure out how to move only one foot at a time during the turn cycle.

No comments:

Post a Comment