[Bullet-Irrlicht] Rag Doll

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
SG57
Posts: 66
Joined: Fri May 18, 2007 5:51 am

[Bullet-Irrlicht] Rag Doll

Post by SG57 »

I haven't seen one of these yet, an Irrlicht Bullet rag doll, not the source code to one anyways...

There is this great bullet rag doll example that is entirely render-engine independent, strictly Bullet goodness by Marten Svanfeldt. I was able to hack it around and get it running with Irrlicht:
Image

The visual sizes are a bit off because it's using spheres, not capsules. That and it would seem bullet body positions are actually pivot points, not centers of the body...Not sure how to translate a sphere locally...kinda wanna know that now - anyone? Anyways, the collisions are there. Right now it uses bounding capsules, which I read are unoptimized in Bullet physics so I'll probably change those to a mixture of spheres and boxes when i implement it personally into my game.

In anycase, here's a simple bullet irrlicht rag doll demo + source.
Download
__________________________________
...you'll never know what it's like, living your whole life in a dream...
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Post by netpipe »

the boxes work, but ragdoll without rigid enabled segfaults here.. hmmm
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Post by netpipe »

never mind, the segs were from a dirty compile. thanks a bunch this is really nice.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
Post Reply