LRC
10-04-2008 15:28:10
Hi,
I'm trying to create a new space for some of my geoms to use, instead of the default space. I wrote the following code:
Then I create my geom:
I don't know if the registerSpace()-line is needed, but either way I get the following error pop-up:
Does anyone know what I'm doing wrong? I can't find any tutorials or help on how to use spaces.
I'm trying to create a new space for some of my geoms to use, instead of the default space. I wrote the following code:
mSpace = new OgreOde::Space(mWorld, mWorld->getDefaultSpace());
mSpace->registerSpace();
Then I create my geom:
mGeom = (OgreOde::Geometry*)(new OgreOde::BoxGeometry(size, world, space));
I don't know if the registerSpace()-line is needed, but either way I get the following error pop-up:
ODE INTERNAL ERROR 2
argument not a space (..\..\ode\src\collision_space.cpp:689)
Does anyone know what I'm doing wrong? I can't find any tutorials or help on how to use spaces.