bluebrint<character> passing through walls.

Merem

02-02-2007 02:01:08

Hello.

I have this level that i'm importing into our world:


Dont mind that you can see through it.

I'm loading it into both my own custom framework and Tutoiral 606 using the same line of code:
body *area = mScene->createStaticBody("construct","testRoom.mesh",new meshShape("testRoom.mesh",mScene),Vector3(0,0,0));

But in my own game, the character passes through all the walls, except a couple. While in Tutorial 606, he collides with every thing perfectly.
I would post a picture of him in the middle of a wall, but my printScreen button is not working for some reason :?.

Here are the two bluprint<character>s
//Mine
blueprint<character> bp;
bp.setToDefault();
bp.setGravity(true);
bp.setSlopeLimit(45);
bp.setStep(0.05);
bp.setShapeAsCapsule(0.4,1.75);
bp.setMesh("");

//Tutorial 606
blueprint<character> bp;
bp.setToDefault();
bp.setGravity(true);
bp.setSlopeLimit(45);
bp.setStep(0.15);
bp.setShapeAsCapsule(0.15,1.5);
bp.setMesh("");

I recompiled the nxOgre_Character and changed the desc.skinWidth = 0.0125f;, but even so, i'm using mWorld->setSkinWidth(0.1); in our code and he still passes through stuff, other then the ground but I have a "fake floor" in place.
Except I have noticed one thing in tutorial 606, The box floats ever so slightly off the ground, even with out a "fake floor" in place.

Anyways, thats my problem, and thanks in advance.

betajaen

02-02-2007 08:49:07

If it helps, I get the same problem sometimes as well. With the new mesh for NxTutorial 606, some parts of it (the ones I haven't released yet), the character goes through them.

One thing that raises my eyebrows though is your step is quite low, also which box mesh are you using mine or yours?

Merem

02-02-2007 14:50:32

If it helps, I get the same problem sometimes as well. With the new mesh for NxTutorial 606, some parts of it (the ones I haven't released yet), the character goes through them.

One thing that raises my eyebrows though is your step is quite low, also which box mesh are you using mine or yours?



Oh sorry, I guessed I should of said witch mesh I'm using in our game. We are using a biped character one of our modlers had made, who has a skeleton and animations on it, not a box. But His pivit point is at his feet so he looks really high in the world. Now I can't see bounding boxes in our game, but I think hes half in, and half out of his bounding capsule, I'll try replacing him with the yellow box that comes with NxOgre. The steps are so low, because that was the only way, I could figure out, to make him walk slower.

Thanks.