Forums

Full Version: How do i get source files or source codes?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
We are few students working on our hardware project in university. We are making a car simulator and need this game's source code to collaborate it with our hardware. Please, someone tell how do I get source code of this game?
Thanks! Can you also help us with the specific files related to dynamics of the car. We just need to create some output for our hardware(Hydrolics). If you guys want additional details it can be provided. Assistance would be appreciated. . . Thanks
Hi nucleargenome

Quote:related to dynamics of the car
The car dynamics related code is in the cardynamics.h(cardynamics.cpp).

Quote:We just need to create some output for our hardware
What kind of output?
hi NAN!

Output will be a signal from serial port to the, three hydrolics (assembled as a tripod), via PIC Micro-controller. Those hydrolics will create the effect of car movement/dynamics. On the basic level we are just focusing on

- steering (left/right movement)
- acceleration (backward movement)
- deceleration (forward movement)
Do you need the acceleration values explicitly or are current position, orientation enough?
Code:
// graphics interface, interpolated!
void Update(); // update interpolated chassis state
const MATHVECTOR <T, 3> & GetCenterOfMassPosition() const;
const MATHVECTOR <T, 3> & GetPosition() const;
const QUATERNION <T> & GetOrientation() const;

If you want to use the non-interpolated values I would suggest to derive from cardynamics and read the btRigidBody values directly.