gzmzhen
08-08-2006 00:06:45
I'm using the vehicle class from Walaber's StuntPlayground, but for some reason (and the same thing happens with the vehicle class in the OgreNewt demos) if I change the y-pos in the pos parameter of the
mVehicle->getChassisBody()->setPositionOrientation(pos,orient)
function to something around 200 then the vehicle is seperated from its wheels and no longer works with OgreNewt.
How do you position a car in the space initially? Is there a different function that allows you to put it anywhere? I'm guessing I overlooked it somewhere and got stuck that this function says "set position orientation" and the fact that all of the other positions were offsets from the body (i.e. the chassis).
Thanks.
mVehicle->getChassisBody()->setPositionOrientation(pos,orient)
function to something around 200 then the vehicle is seperated from its wheels and no longer works with OgreNewt.
How do you position a car in the space initially? Is there a different function that allows you to put it anywhere? I'm guessing I overlooked it somewhere and got stuck that this function says "set position orientation" and the fact that all of the other positions were offsets from the body (i.e. the chassis).
Thanks.