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.
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.