[SOLVED] Runtime error when creating body for ShapeGroup

spacegaier

12-03-2008 13:46:03

I'm getting a runtime error when creating a new body who should be assigned to a shapeGroup via the ShapeParams.

NxOgre::ShapeGroup *goalsSG = m_pNxScene->createShapeGroup("goalsSG");
NxOgre::ShapeGroup *ballSG = m_pNxScene->createShapeGroup("ballSG");


NxOgre::ShapeParams goal1ShapeParams;
goal1ShapeParams.setToDefault();
goal1ShapeParams.mGroupAsName = "goalSG";

NxOgre::ActorParams goal1ActorParams;
goal1ActorParams.setToDefault();
goal1ActorParams.mMass = 0;

NxOgre::Body *goal1 = m_pNxScene->createBody("goal1;Goal2.mesh", new NxOgre::ConvexShape("Goal2.mesh", goal1ShapeParams), NxOgre::Pose(Vector3(-20,3, 0), Quaternion(Radian(Degree(90)), Vector3(0,1,0))), goal1ActorParams);

betajaen

12-03-2008 13:57:48

Look:

NxOgre::ShapeGroup *goalsSG = m_pNxScene->createShapeGroup("goalsSG");

goal1ShapeParams.mGroupAsName = "goalSG";


I've used NxOgre daily for the last two years. The core parts do not crash.

spacegaier

12-03-2008 16:34:13

:? -> :shock: -> :oops: Sorry, for stealing your time which such a stupid "problem"