ocrim74
29-11-2006 00:45:25
Hi,
I have got the problem that my findBody()-method crashes. I checked out the latest nxOgre-files from the CVS-repository and compiled it.
There are two overloads shown in the VS2005. Is there anything wrong in my code?
If I comment out the last row it works.
Do you have an idea whats going wrong?
Thank you!
ocrim74
I have got the problem that my findBody()-method crashes. I checked out the latest nxOgre-files from the CVS-repository and compiled it.
There are two overloads shown in the VS2005. Is there anything wrong in my code?
mScene->createBody(
"ladderOuter", // Name
"ladder-outer.mesh", // Mesh to use
new nxOgre::cubeShape(Vector3(7.1f,0.6f,1.6f)), // Collision Model to use
10.0f, // Density of the body (In Kilograms)
Vector3(0,3.38f,0) // Where to put it. (In Metres)
);
mScene->findBody("ladderOuter")->mEntity->setCastShadows( true );
If I comment out the last row it works.
Do you have an idea whats going wrong?
Thank you!
ocrim74