Vehicles

proof

10-02-2011 14:37:12

How do you control a vehicle? I've seen the OgreNewt sample 05, but the sample only shows how to create a vehicle. The following line is commented:

mCar->setTorqueSteering( torque, steering );

For a good reason though - it doesn't exist.
Since the class uses CustomDGRayCastCar, and that class does have SetTireTorque and SetTireSteerAngleForce, what I've done is in the SimpleVehicle class add a protected variable CustomDGRayCastCar* controller; and store the car there, then made a method CustomDGRayCastCar* getCar();, but that solution does not work because I get the following errors:

1>TestGameState.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomDGRayCastCar::SetTireSteerAngleForce(int,float,float)" (__imp_?SetTireSteerAngleForce@CustomDGRayCastCar@@QAEXHMM@Z) referenced in function "public: virtual bool __thiscall TestGameState::handleInput(float,class InputComponent *)" (?handleInput@TestGameState@@UAE_NMPAVInputComponent@@@Z)
1>TestGameState.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CustomDGRayCastCar::SetTireTorque(int,float)" (__imp_?SetTireTorque@CustomDGRayCastCar@@QAEXHM@Z) referenced in function "public: virtual bool __thiscall TestGameState::handleInput(float,class InputComponent *)" (?handleInput@TestGameState@@UAE_NMPAVInputComponent@@@Z)


Sooo.... how can I control a vehicle?