Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i get source files or source codes?
05-05-2010, 12:43 PM,
How do i get source files or source codes?
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?
05-05-2010, 01:37 PM,
Take a look here for your answer:
05-06-2010, 12:35 AM,
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
05-06-2010, 06:31 PM,
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?
05-07-2010, 12:05 PM,
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)
05-07-2010, 12:18 PM,
Do you need the acceleration values explicitly or are current position, orientation enough?
// 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.

Forum Jump:

Users browsing this thread: 1 Guest(s)