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);