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,
#1
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?
Reply
05-05-2010, 01:37 PM,
#2
 
Take a look here for your answer:
http://wiki.vdrift.net/Getting_the_development_version
Reply
05-06-2010, 12:35 AM,
#3
 
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
Reply
05-06-2010, 06:31 PM,
#4
 
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?
Reply
05-07-2010, 12:05 PM,
#5
 
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)
Reply
05-07-2010, 12:18 PM,
#6
 
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)