Netskate
17-09-2008 20:14:42
Hi, maybe someone can explain this:
I use:
ogre sdk 1.4.9
nxogre bleeding
the shape of cube (its a body) fall through my heightfield generated with flour. it penetrates the terrain for 0.5 units I think, then it stops.
(Note: they penetrate each other in visual remote debugger, so there isn't a problem of position of the rendered terrain)
I tried to set skin of each cube and heightfield to 0.0 with no result. I also tried to substitute a cube (as plane) to the heightfield, but the small cube penetrate the big cube I use as plane in the same way...
some code, small cube that fall:
big cube used as plane:
some idea?
I use:
ogre sdk 1.4.9
nxogre bleeding
the shape of cube (its a body) fall through my heightfield generated with flour. it penetrates the terrain for 0.5 units I think, then it stops.
(Note: they penetrate each other in visual remote debugger, so there isn't a problem of position of the rendered terrain)
I tried to set skin of each cube and heightfield to 0.0 with no result. I also tried to substitute a cube (as plane) to the heightfield, but the small cube penetrate the big cube I use as plane in the same way...
some code, small cube that fall:
NodeRenderableParams vp;
vp.setToDefault();
vp.mIdentifier = "cubo_prova";
//vp.mIdentifierUsage = vp.IU_Create;
vp.mGraphicsModel = "cube.mesh";
vp.mGraphicsModelScale = NxVec3(0.1, 0.1, 0.1);
vp.mGraphicsModelMaterial = "Examples/Rocky";
gBody = gScene->createBody("cubo_prova", new Cube(0.1), Vector3(600,200,600), vp, "mass: 1000000000");
big cube used as plane:
gScene->createActor("piano", new Cube(2400.0,100.0,2400.0),Vector3(1200.0,0.0,1200.0), "static: yes");
some idea?