Vehicle Demo Troubles

Bubba1869
Posts: 5
Joined: Mon Mar 21, 2011 3:50 pm

Vehicle Demo Troubles

Post by Bubba1869 »

I'm currently working on a driving game as part of a uni project and have ran into a small problem.

Currently using the PhyreEngine for the PSP and having problems figuring out the correct combination of axel,wheel and coordinate system. I believe the PSP system is right handed coordinate.

Currently while using the Bullet demo the car moves sideways. Any ideas of a possible fix for this?

Thanks in advance.
Paril
Posts: 18
Joined: Tue Feb 22, 2011 4:14 am

Re: Vehicle Demo Troubles

Post by Paril »

Playing around with these three lines fixed my sideways car:

Code: Select all

			//choose coordinate system
			m_vehicle->setCoordinateSystem(0,2,1);

			btVector3 wheelDirectionCS0(0,0,-1);
			btVector3 wheelAxleCS(1,0,0);
-P