View Single Post
  #13  
Old 06-07-2011, 07:45 AM
kevin kevin is offline
Member
 
Join Date: Jun 2011
Posts: 18
Hi Jeff,

I've taken over the project from miles for this summer. Thanks for your help so far. We've almost got the entire rig working, but another problem has presented itself.

The code you provided in your last post was exactly what we needed. However, the car isn't turning properly. It's more or less drifting; when the steering wheel is turned, the car will turn in the right direction, but it will move both forward and to the side. Our code for moving the car is as follows:

Code:
self.car.setPosition([0,0,self.speed*viz.elapsed()],viz.REL_LOCAL)
self.car.setEuler([rot*self.speed*self.turn_speed*viz.elapsed(),0,0],viz.REL_LOCAL)
The head-tracking orientation data seems to be interfering with the local Z-axis of the car, though the local rotation is unaffected. I'm not sure whether to address the problem by making changes to the link or by making changes to the car movement. Any suggestions?
Reply With Quote