Help stablise ragdoll

General discussion about Box2D tutorials
Post Reply
blakey87
Posts: 28
Joined: Wed Jan 09, 2013 7:57 pm

Help stablise ragdoll

Post by blakey87 »

Hi iforce, do you have any idea, how I could stablise this walking ragdoll,
What could be causing the jerkiness.

https://www.youtube.com/watch?v=BvU4zJTM2Ps

PS, where is your donate page, I have learnt so much from you!

Thanks!
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Help stablise ragdoll

Post by iforce2d »

I can't really help with that because I never managed to make a ragdoll walk, my guy only tries to stay standing. You have to realize what you're doing there is a pretty difficult thing involving some advanced AI ;)
blakey87
Posts: 28
Joined: Wed Jan 09, 2013 7:57 pm

Re: Help stablise ragdoll

Post by blakey87 »

There is no a.i involved just an enhancement from your robot arm, I have rewrote some of the code so it takes rotations from a single json file rather then multiple, I am only using joint motors on the revolute joints, I may have to add some basic a.i to improve movement, but Im amazed he moves forward from his own momentum, it moves far better when angular and linear velocity are set to 60, but then he is no longer effected by gravity and moved forward, you think there is any work around with that sort of set up, to get him effected by garvity and moving forward?

I have attached a json file to illustrate how I am creating these animations

Video is also below
http://youtu.be/51cFS5V32zk
Attachments
body_punch.zip
(6.47 KiB) Downloaded 768 times
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Help stablise ragdoll

Post by iforce2d »

Holy cow. I think my boxer would only last a few seconds against that furious attack. First round KO probably :D

True, perhaps you are not using AI now, but I think what you're doing will require at least some simple form of AI to control the legs. It's been over a year since I touched my boxing game, but I would like to get back to it sometime, and I have been thinking about ways to allow the player to move the boxer back and forwards. Currently I am thinking to remove the legs from the controlling method completely and use a couple of points to hold the guy up. This would make it easier to get him shuffling forward/back than by controlling many joint motors. You can see something similar in this video at about 1:10
http://www.youtube.com/watch?v=_hsLFV3kwvs
Then the legs would be drawn at the right place to match the feet end points. I guess when he gets KO-ed then everything could return to a normal rag doll.
blakey87
Posts: 28
Joined: Wed Jan 09, 2013 7:57 pm

Re: Help stablise ragdoll

Post by blakey87 »

Yeah I'll see if I can get any info on improving it through ai, I'd like tosee the boxing game complete too, look pretty fun.

intrusion 2 is a great example of what I'd love to achieve, but its way beyond my current knowledge, I'll keep trying though!
Post Reply