CmonGirl
13-10-2010 08:23:56
Hi guys. I have one more question about cars.
that my car's initialize function:
This code working. But. Car sleep and dont move when i use break.
Why may be? Someone help me.
that my car's initialize function:
NxOgre::RigidBodyDescription description;
description.mMass = 1000;
description.mWakeUpCounter = 1E30;//1e8
mActor = mPhysicsScene->createActor(shapes,Location,description);
This code working. But. Car sleep and dont move when i use break.
for(unsigned int i = 0;i < mWheels.size();i++)
{
if(mWheels[i].mBraking)
mWheels[i].mWheel->setBrakeTorque(Torque);
}
Why may be? Someone help me.