chcampb
18-06-2008 00:58:33
I'm using the statement
For some reason, it gets through the mesh info, then crashes when calling
Specifically when using m_world->getNewtonWorld().
Why would it crash there? Am i using this correctly?
tempCollisionPtr = new OgreNewt::CollisionPrimitives::ConvexHull(worldPtr, tempSceneNodePtr,tempSceneNodePtr->getOrientation(), tempSceneNodePtr->getPosition());For some reason, it gets through the mesh info, then crashes when calling
m_col = NewtonCreateConvexHull( m_world->getNewtonWorld(), (int)total_verts, (float*)&vertices[0].x, sizeof(Ogre::Vector3), &matrix[0] );Specifically when using m_world->getNewtonWorld().
Why would it crash there? Am i using this correctly?