Inverse kinematic walker (run walker run!)

Post your own tutorials, guides and demos.

Post » Sun Feb 01, 2009 6:19 pm

Well this is a little thing ive been working on lately, it uses my 2point IK solver, and bezier curves to create a pretty interesting result. this is the main way me and davios new zombie game will be animated.

its pretty customizable and gives me alot of oppurtunity, it lets me create walking animations based on the terrain, rather than boring old preset animations.

theres a few controls you need to know.

holding space pauses the walk sequence
right click and drag to drag bezier points and root bones
left click and drag to use a measuring tool
roll the mouse wheel over a bone to lengthen/shorten said bone
roll the mouse wheel while not on a bone to speed up/ slow down the animation.
hold the mouse wheel to make a useless box.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sun Feb 01, 2009 6:26 pm

Wow :O That's amazing! Very realistic... that would make an amazing game.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,590

Post » Sun Feb 01, 2009 7:21 pm

That is... awesome... but a staggering amount of complexity... head exploding!
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun Feb 01, 2009 10:22 pm

this is brilliant. absolutly fenomenal! just so complex ><' plugin would be nice :D
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Mon Feb 02, 2009 3:53 am

[quote:cdu3v6zm]walking animations based on the terrain[/quote:cdu3v6zm]

Heh I never thought of it like that but your right. you could potentially design it so theres two objects for the 'feet' and foot one moves, then foot two move, and the torso gets positioned between the two feet etc. The IK calculates the legs respectively, and your got a pretty damn awesome walk animation where going up steps and slopes looks completely natural (rather than players feet being over the edge).

Man the possibilities :O
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Mon Feb 02, 2009 4:17 am

[quote="Ashley":2qofwgmg]that would make an amazing game.[/quote:2qofwgmg]

This game is going to be amazing 8)
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Mon Feb 02, 2009 5:47 am

[quote="David":cjprxdbu][quote:cjprxdbu]walking animations based on the terrain[/quote:cjprxdbu]

Heh I never thought of it like that but your right...

Man the possibilities :O[/quote:cjprxdbu]

You just now thought of this? That's what he's been aiming for the whole time, man! :)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Feb 02, 2009 8:57 am

That's amazing, although I can't even begin to understand the maths behind it! I can't wait to see this in action on a proper game, it'd look cool to see the walking be affected by terrain, you don't see that in many 2D games.
B
2
S
2
G
5
Posts: 156
Reputation: 1,962

Post » Mon Feb 02, 2009 9:00 am

it'd definitely be interesting to see this effect in a real world example. For a game like Out of this World IK could help a lot to make the movements more natural.

It looks really complex in the event sheet though :)
B
6
S
2
G
3
Posts: 520
Reputation: 2,690

Post » Mon Feb 02, 2009 12:47 pm

the events arent that comlipacted really, the most complicated stuff has to do with the canvas and not the walker itself. the only things that are needed are events relating to the objects (root,a,b,end,) and the ones involving end + p1,p2,p3,p4.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests