Röki DevBlog - Anatomy of a Walk Cycle - Part 1

Röki

Röki is a stunning adventure set in the snowcapped wilderness. As Tove, you must explore an uncharted world of hidden legends and forgotten monsters. Solve puzzles, collect curiosities, and uncover a tale of tragic loss, as you chart your path to redemption.

[img]{STEAM_CLAN_IMAGE}/36019928/315b81bd17d6666b72f718f2aed2c2c1c887cb1b.gif[/img] Hi everyone! Last time we posted a whole devblog about [url=https://steamcommunity.com/games/1067540/announcements/detail/2943625250050192733]Footprints[/url]. And from here we are pretty close to the subject of the character's movement. To be specific - to a walk cycle. So, sit, let your legs rest and read a long (but I hope also fascinating) text… about walking ;) A walk cycle is a nice animation task to examine because: ❄️ You see it a lot, over and over again in fact, so it’s a good thing to lavish attention on; ❄️ It’s a nice contained animation (time duration wise) to examine body mechanics; ❄️ It’s often one of the first things people attempt when starting out, certainly it was for me. So we’ll step through some of the key aspects (as far as I’m concerned) today and on the next week. It’s not going to be exhaustive, but an overview. I’m sure there are some things I’ll miss but hey, nobody’s perfect right! Today, we’re mostly gonna be looking at the key poses and the role of the hips. [b]Key Poses (Contact Poses & Passing Poses)[/b] At the top level there are four key poses in a walk cycle. There are as follows: ❄️ [i][b]Left Foot Contact Pose[/b][/i] - Left foot forward & right foot back. Right arm forward & left arm back (opposing legs); ❄️ [i][b]Right Foot Passing Pose[/b][/i] - Right foot passes the standing left foot as it moves forward; ❄️ [i][b]Right Foot Contact Pose[/b][/i] - Left foot forward & right foot back. Right arm forward & left arm back (opposing legs); ❄️ [i][b]Left Foot Passing Pose[/b][/i] - Right foot passes the standing left foot as it moves forward. You can see these base poses below in Tove’s walk cycle. [img]{STEAM_CLAN_IMAGE}/36019928/70efe90291d83de9394307bbe63a79cd5e0517fc.jpg[/img] [b]Transferal of Weight[/b] When a human walks they are constantly falling forward but are catching themselves with each step. With each step the weight of the body transfers from one foot to the other. This frees the other foot to move forward, unencumbered by the need to bear the body’s weight. The ‘free‘ foot will then make contact with the floor as the next step is made and the weight of the body will begin to transfer to this foot subsequently freeing the other foot from supporting the body so it can make its step forward. This transferal of weight is critical to creating a convincing walk cycle. How does this transfer of weight make itself know in the key poses? Well there are two key elements, both concern the hips of the character. [img]{STEAM_CLAN_IMAGE}/36019928/962f4e40deae87a8c988611bb99d6a08a419b2b1.gif[/img] [b]The Hips’s Side-To-Side motion & Center of Gravity[/b] When the weight of the body is on a particular foot the hips will move over to that side to balance the body’s center of gravity. Without this movement you’d simply fall over. It’s something we do without thinking, try standing on one leg and see what happens to your hips. They move over to the standing leg right, that’s what we’re talking about. This side-to-side motion produces the ‘sway‘ you see when people walk. [img]{STEAM_CLAN_IMAGE}/36019928/728d4cc648f24e0dce7369226f8c79a3481978ae.gif[/img] [i]The side-to-side movement of the hips from the center line[/i] [b]Hip Rotation[/b] One common mistake when people attempt their first walk cycles is to ignore the rotation of the hips. There are two important hip rotations to be aware of: ❄️ Yaw rotation of the hips ❄️ Roll rotation of the hips [img]{STEAM_CLAN_IMAGE}/36019928/82e5a9b4ff46f155657df455db9b2652ef2a7916.jpg[/img] For the hip’s [i][b]yaw rotation[/b][/i] the important consideration is that your legs do not flip-flap on the end of static hips they are a unit! If you stand up and approximate a contact key pose (one leg forward, the other back) you will notice that your hips are not straight, they will have twisted to extend your stride and the reach of your foot. Not utilising the yaw rotation of the hips means your character will be taking tiny steps (as their stride will be reduced) and it will look very mechanical, as the legs and hips are not working together as a unit. [img]{STEAM_CLAN_IMAGE}/36019928/352baefefe0183beff49132566e0dc14cdc7b22c.gif[/img] [i]The hip’s YAW rotation[/i] The hip’s [i][b]roll rotation[/b][/i] also plays an important role in the walk cycle, specifically to do with the transfer of weight. When standing on a single leg the hips/pelvis will roll up on that side as the full weight of the body is taken. Animation wise this is a great way to sell the transfer of weight in your animations and give a clear indication when the weight is passes and the hips roll one way and then the other. [img]{STEAM_CLAN_IMAGE}/36019928/67ac6b1ccf426730fb14e55c798a324f8d937bf8.gif[/img] It’s also important to note that this hip movement can be adjusted for the weight of your characters. If your character is heavier (like Henrik) then this transfer might be more sudden and less smooth then for a lighter character. In fact this motion is a great way to sell a heavier character. [img]{STEAM_CLAN_IMAGE}/36019928/16fd436226e7c8c06bae7a2dbbf891c566f826b9.gif[/img] Phew, this is a lot of stuff! I had to divide this devblog on two parts to not torment you to death. Next part on the next week! [b]Cheers, Alex & Team Röki[/b] [i]RÖKI: A game about monsters that shouldn’t exist[/i] https://store.steampowered.com/app/1067540/Rki/