Car game problems

im VERY new to makign games with blender…but i have used blender for several years for still renders.

im working on making a fairly simple race car sim…and i jsut bought a compy of the blender gamekit book :slight_smile:

im on the second chapter dealing with the game engine, chapter 5, and i decided to start playing around.

i got my car model to go forward, back, left, and right successfully, but i have a few questions/problems:

i have my front two wheels turn when i press [left] or [right] arrow keys… and well it seems to be relative to the camera/view… so the wheels rotate differently depeing on the viewing angle… like inwards/outward etc, in stead of jsut left/right. it doesnt when u are looking dead-on, with the top or side view… until you move the car with the up or down arrow :confused: any way to fix this?

also, is there an easy way to:

A- make the wheels automatically rotate back to their normal position after a period of time (not turned left or right)… like in real cars :slight_smile:

B-make the car rotate differently depending on the angle of the front tires… e.g. in reverse, if the wheels are aimed left, the car rotates to the right, yet if the car is moving forward, it rotates left? (i already have it so the car body rotates left in both directions)

by simple i mean no python coding needed? i dont refuse to use python, but im jsut not a coder, so it might not be the easiest way for me.

thanks,

farrell farahbod / upgrdman

hey upg… well for the turning of the tires, id use empties and ipos… empties have the ipos and the tire is parented to them

about your wheels returning back to the original rotation, the ipos with FLIPPER as the actuator should do the trick

for turning your car differently depending on your direction, give your car property “turn”…
when you press up, make property turn = 1
when you press down, make property turn = -1

so when turn = 1 and press left, turn left
when turn = -1 and press left, turn right

thats the simple explanation… for better sim, heres a blend:

http://www.zerooneentertainment.org/blengine/scripts/carSim.zip

it includes tire turning, wheel spinning, and different turn direction based on whether your velocity is forward or reverse(done with delay parent :wink: )
caution: includes python =P