demo 8, Ragdoll, zombie wont fall over

f001error

20-07-2006 15:04:32

Hey, After a lot of playing around I finally got everything complied and running properly, except for demo 8. When i shoot the balls they bounce of the terrian properly, but goes straight through the zombie... :shock:

Any ideas ?

walaber

20-07-2006 16:45:31

press the "1" or "2" keys to make the model into a ragdoll first. then try shooting it.

f001error

20-07-2006 18:31:54

press the "1" or "2" keys to make the model into a ragdoll first. then try shooting it.

Nope, the balls still go straight through it :(

ochensati2

26-01-2007 16:51:59

Hello,
I am new here, just got everything fixed up and have the same problem. I can see the ragdoll, he moves, I press 1 or 2 and the balls pass right through him. anyone ever solve this one?

Maklaud

26-01-2007 17:22:55

Yes, I have this problem too - balls go through the ragdoll. But "1" and "2" keys work correctly...

ochensati2

26-01-2007 17:26:10

Ok here is the error. When ragdoll is created by pressing 1, I get this error

ERROR! cannot find 'root' in xml file: ../../media/models/zombie_rag_primitives.xml

ochensati2

26-01-2007 17:31:13

And here is the solution.

I am using the working directory

ogrenew/samples/common/bin/debug

so I have to change the zombie definition filename to

mRagdoll = new RagDoll( "../../../media/models/zombie_rag_primitives.xml", m_World, mRagNode );

CagedFury

07-02-2007 18:07:59

I had the same problem, the demo in general was a bit messed up for me, missing textures when the resource.cfg file was correct.

Anyhow i dont know about the balls bouncing off him, but the ragdoll does work i transplanted the ragdoll.h into my project although i took out any animation loop stuff, it creates teh zombie who falls to the ground.

I put this into the create scene function, rather than mess around with frame listeners, just to see if i could get it to work.

mRagEntity = mSceneMgr->createEntity( "RAGDOLL_ENTITY", "zombie.mesh" );
mRagNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
mRagNode->attachObject( mRagEntity );
mRagNode->setPosition( Ogre::Vector3(0, 0, 0) );
mRagdoll = new RagDoll( "../../media/models/zombie_rag_hull.xml", mWorld, mRagNode );


Its a start along the right lines at any rate.

Oh and obviously you need to change the "../media/models/.xml" line to the location of the xml file.