[BloodyMess]Problem spheres collisions

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 :

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.

betajaen

06-05-2009 19:18:13

Your the second person today to have trouble with spheres, which it must mean it isn't an isolated problem. More like a bug.

Most likely your problem will go away with the next release of BloodyMess - I've rewritten the shapes system, so any bug would of been squashed.

ironwolf151

06-05-2009 19:33:23

Ok , do you know when the next release will be available ?

Thanks.

betajaen

06-05-2009 19:51:33

I'll put it out on Saturday.

ironwolf151

06-05-2009 20:29:49

Thanks to answered so fast.

ironwolf151

10-05-2009 15:11:23

The new realease of NxOgre (1.5.4) resolve the collision problem with spheres ;)

Thanks

betajaen

10-05-2009 15:19:15

Thought it might. ;)