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?
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?