frier
24-09-2007 02:12:40
I just finished creating a very basic form of my Vechile in cake box and imported it into my gameframe.
I found the car just bounces continually, off the wheels. Up and Down. It worked fine in the CakeBox. But i implemented it in my GameFrame a bit different
CakeBox:
GameFrame:
The Player class is inherited from actor and customized to suit my player needs. But yeah any ideas on why its got this perpetual bounce in GameFrame?
I found the car just bounces continually, off the wheels. Up and Down. It worked fine in the CakeBox. But i implemented it in my GameFrame a bit different
CakeBox:
mBody = mNxScene->createBody("racecar.mesh", new NxOgre::CubeShape(1,1,3) , NxOgre::Pose(Vector3(0,5,0),Quaternion(Radian(Degree(90)),Vector3(0,0,0))),"mass: 1000");
mBody->setCMassOffsetLocalPosition(Vector3(0,-2,0));
GameFrame:
NxOgre::ActorParams tmpParams;
tmpParams.setToDefault();
tmpParams.mass = 3000;
mBugz[index] = new Player("Player" + index, TheBugz::HOPPER ,mRenderWindow,mSceneMgr,mNxScene,new NxOgre::CubeShape(1,1,3),NxOgre::Pose(Ogre::Vector3(0,40,-20)),tmpParams);
playerJoysticks[InputManager::getSingletonPtr()->getJoystick(index)] = mBugz[index];
The Player class is inherited from actor and customized to suit my player needs. But yeah any ideas on why its got this perpetual bounce in GameFrame?