[SOLVED] Crash in OgreNewt_body.cpp

zamx

10-05-2010 09:22:15

Hi,

I'm trying to use OgreNewt for collision detection. When I try to make a body it crashes in OgreNewt_body.cpp on because of Boost (1.42)
m_body = NewtonCreateBody( m_world->getNewtonWorld(), col->getNewtonCollision() );

My code for making a body :
node = sceneMgr->getRootSceneNode()->createChildSceneNode( name, pos );
node->attachObject( ent );
node->scale( .1, .1, .1 );

OgreNewt::World* world = GameData::Instance()->getNewtonWorld();
OgreNewt::CollisionPtr colPtr = OgreNewt::CollisionPtr(
new OgreNewt::CollisionPrimitives::Ellipsoid( world ));
OgreNewt::Body* body = new OgreNewt::Body( world, colPtr );
body->attachNode( node );


I'm using Newton 2.20, Ogre SDK 1.65 and the latest revision from OgreNewt.

zamx

10-05-2010 10:05:48

Solved it by using the createEllipsoid function from MinimalOgreNewt.