njw1985
04-04-2009 15:37:32
How to setup a car in 1.0.22T5? can anybody give a simple sample?
betajaen
05-04-2009 10:54:42
It's been a while, but there should be a class called "WheelSet" which is a bunch of helper functions to create a simple car for you.
WheelSet* WheelSet::createFourWheelSet(...);
Your actor must already have a shape in it already such as a cube, and you must always keep it awake - otherwise the car "dies". Also make sure your SceneController is using the accumulator, the wheels look much better motion.
njw1985
14-04-2009 13:39:06
I set up one car and setMotorTorque to it,but the car drive all the time,can't stop!! Why?
betajaen
14-04-2009 13:42:54
Reduce or remove the motor torque, and apply some braking torque.
njw1985
14-04-2009 14:19:04
When I use function "setBrakingTorque", and compile my project,the result is:
error LNK2001: 无法解析的外部符号 "public: void __thiscall NxOgre::WheelSet::setBrakingTorque(float)" (?setBrakingTorque@WheelSet@NxOgre@@QAEXM@Z)
why?
njw1985
15-04-2009 15:52:36
I add material to the vehicle,but the car also slip,can't stop!
betajaen ,can you give a good sample?