ironwolf151
06-05-2009 19:11:31
Hi all,
I'm actually working on a little game , and i need to use some spheres.
So i try to use NxOgre , and i have some problems.
I try the examples of this tutorial : http://www.ogre3d.org/wiki/index.php/Bl ... Tutorial_2
This is ok , there are no problem with this , but for my game i don't need a box , but i need a sphere.
So i have modified the code to obtain this :
Spheres creation :
A part of my class :
So , the bug is simple , when i use createBody the first parameter is a the sphere which take a radius in parameter.
But here is the problem , i can give any number the result is already the same , the collision isn't good and i obtain always the same collision , the point of the collision don't change with the radius i give.
I obtain this result :

Is someone know what is the problem ?
Thanks.
I'm actually working on a little game , and i need to use some spheres.
So i try to use NxOgre , and i have some problems.
I try the examples of this tutorial : http://www.ogre3d.org/wiki/index.php/Bl ... Tutorial_2
This is ok , there are no problem with this , but for my game i don't need a box , but i need a sphere.
So i have modified the code to obtain this :
Spheres creation :
this->_Ball = this->_RenderSystem->createBody(new NxOgre::Sphere(2), NxOgre::Real3(0, 40, 0), "Sphere01.mesh");
this->_Ball->getSceneNode()->scale(0.05f, 0.05f, 0.05f);
this->_Ball->getEntity()->setMaterialName("Examples/vent");
this->_Ball2 = this->_RenderSystem->createBody(new NxOgre::Sphere(2), NxOgre::Real3(20, 45, 0), "Sphere01.mesh");
this->_Ball2->getSceneNode()->scale(0.05f, 0.05f, 0.05f);
this->_Ball2->getEntity()->setMaterialName("Examples/vent");
this->_Ball2->addForce(NxOgre::Real3(-800, -200, 0), NxOgre::Enums::ForceMode_Force);
A part of my class :
private:
NxOgre::World *_NxWorld;
NxOgre::Scene *_NxScene;
NxOgre::SceneDescription _NxSceneDesc;
OGRE3DRenderSystem *_RenderSystem;
OGRE3DBody *_Ball;
OGRE3DBody *_Ball2;
public:
NxOgre::VisualDebugger *_VisualDebugger;
OGRE3DRenderable *_VisualDebuggerRenderable;
Ogre::SceneNode *_VisualDebuggerNode;
NxOgre::TimeController *_TimeController;
So , the bug is simple , when i use createBody the first parameter is a the sphere which take a radius in parameter.
But here is the problem , i can give any number the result is already the same , the collision isn't good and i obtain always the same collision , the point of the collision don't change with the radius i give.
I obtain this result :
Is someone know what is the problem ?
Thanks.