Wrong collider position

OGREHEAD

12-06-2010 19:51:06

I have added trianglemesh colliders for my objects.

But the colliders get wrong positions, with regards to where the meshes are.

In debug mode I can see the colliders, but they are not placed where the meshes are, instead they have offset.

EntityInformer *EI1 = new EntityInformer( Entity1, SceneNode1->_getFullTransform() );
TriangleMeshGeometry *Geometry1 = EI1->createStaticTriangleMesh( World1, Space1->getDefaultSpace() );

What am I missing or how can I secure collider is around mesh?

OGREHEAD

20-06-2010 14:16:24

I have tested a bit more with some objects.

When I add geometry for an object and enable debug mode, I can see the collider gets placed at object position * 2. so that if object is (10, 0, -5) the collider get placed at (20, 0, -10)

So position space between ogreode world and ogre world is not the same.

How can I make them equal, so that (10, 0, -5) is (10, 0, -5) in both coordinate systems?

6SS

13-08-2012 20:44:57

Hi, did you find a Solution to this?
Thanks