joi
11-03-2006 21:16:28
Mesh shapes cant collide with themselfs ?
Im trying to create two dynamics spheres from a mesh file. The reason why im using meshShape instead of sphereShape, its because its much smother when colliding, rolling and frictioning with another surfaces... they do collided with the floor, witch is a static body, but no collision happens between the two of the spheres.
Just a simple question...
[edit]
Using sphereShape its nice, but when they collied, the friction is not kicking in, they roll, and roll, and roll... can you tell me why?
[/edit]
Im trying to create two dynamics spheres from a mesh file. The reason why im using meshShape instead of sphereShape, its because its much smother when colliding, rolling and frictioning with another surfaces... they do collided with the floor, witch is a static body, but no collision happens between the two of the spheres.
Just a simple question...
[edit]
Using sphereShape its nice, but when they collied, the friction is not kicking in, they roll, and roll, and roll... can you tell me why?
mWorld = new nxOgre::world( Game::getInstance()->getRoot() );
mScene = mWorld->createScene( "defaultScene", Game::getInstance()->getSceneManager() );
mScene->hasFloor();
mScene->hasGravity();
mScene->mDefaultMaterial->setBounce( 0.2f );
mScene->mDefaultMaterial->setStaticFriction( 1 );
mScene->mDefaultMaterial->setDynamicFriction( 1 );
mScene->createStaticBody(
"table",
"table.mesh",
new nxOgre::cubeShape( Ogre::Vector3( 21, 0.2, 10.5 ) ),
Ogre::Vector3::ZERO );
mScene->createBody(
"ball",
"ball.mesh",
new nxOgre::sphereShape( 0.3 ),
50,
Vector3(1,8,0.1) );
mScene->createBody(
"ball1",
"ball.mesh",
new nxOgre::sphereShape( 0.3 ),
50,
Vector3(0.47,4,0) );
[/edit]