Unity procedural animation tutorial (10 steps)

Codeer · 496K views · 2020 · 1:05

Open on YouTube

Game programming & enginesIndie game developmentAnimation & visual effectstutorial

Why Stack Overflow recommends it

Stack Overflow users link it when asking or answering how to animate character or spider legs procedurally in Unity, as a quick demo of the result they want to build.

Recommended by 1 people across 1 different months, 2021 to 2023.

What it is

A very short (about one minute) Unity tutorial by the channel Codeer that sketches procedural animation in 10 steps, showing legs moving in alternating steps with inverse kinematics. It works as a quick visual reference for the technique rather than a full walkthrough.

What people said

Recommends Rishit Sood · 2021-03 · Stack Overflow · on “How to make a character walk(unity 2d)”

this is my first answer so please fell free to comment if you have any doubts. what you and use is making a script to move the leg or in this sense rotate it in one direction. Something like: GameObject playerLeg; Input.GetKeyDown("x"); playerLeg.transform.Rotate(10, 0, 0); if you don't clamp the Leg rotation you should end up with a 360 rotation. P.S. don't forget to add colliders to the player Body, legs and Floor. if you want to go a log way with smoother animation and a bit more complex gameplay further in the game you can check out Procedural animation [this video]

Cites DSProgramming · 2021-01 · Stack Overflow · on “Using inverse Kinematics, how would I animate between movements?”

So I was watching the example in the link below and have nearly recreated it. The only part I am struggling with is the lifting of the leg between movements! Any ideas on how I could recreate this? Im stuck between either using animations between movements or just coding in the leg lifting between points! Thankyou, any help would be appreciated. [this video]

Cites Z_Dev · 2023-04 · Stack Overflow · on “How do I make procedrual spider legs move only when the opposite legs are grounded in Unity with one script”

Im trying to make a procedrualy animated spider(In unity) and I have got all the code worked out inside only one script but right now all of the four legs move at the same time, and I want them only to move when the opposite legs are grounded as showed in this video: [LINK] My code is down here: I think the if statements at the bottom is the code that needs to be reworked / changed but I dont know what to do. For reference, in the bottem if statements the first two if statements are one pair of oppisite legs, and the 2 last if statements are the second pair of oppisite legs. Help is appriceiated. Thanks. using System.Collections; using System.Collections.Generic; using UnityEngine; public cl