Page 1 of 1

Help stablise ragdoll

Posted: Tue Feb 05, 2013 8:42 pm
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!

Re: Help stablise ragdoll

Posted: Wed Feb 06, 2013 6:13 am
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 ;)

Re: Help stablise ragdoll

Posted: Wed Feb 06, 2013 8:52 pm
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

Re: Help stablise ragdoll

Posted: Thu Feb 07, 2013 5:08 am
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.

Re: Help stablise ragdoll

Posted: Fri Feb 08, 2013 8:11 pm
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!