OGL
19-04-2009 10:16:49
1.how to add material to wheels
I do this:
and everything is ok, but now I want to add this to my wheelset:
and I don now how...
2. how to check the car speed? I need it because I what to have reverse in my car...
I will be grateful for hints...
I do this:
Ogre::Entity* carWheel_Enity = mSceneMgr->createEntity( "CarWheel_entity", "car_wheell.mesh");
Ogre::SceneNode* carWheel_sn = mSceneMgr->getRootSceneNode()->createChildSceneNode("CarWheel_node");
carWheel_sn->attachObject(carWheel_Enity);
carWheel_Enity->setMaterialName("car_wheel");
and everything is ok, but now I want to add this to my wheelset:
wheelSet = NxOgre::WheelSet::createFourWheelSet(0.5f, NxOgre::float3(1, -1, 2), NxOgre::float3(-1, -1, -2), mCarBody, wheelP, "model: car_wheell.mesh");
and I don now how...
2. how to check the car speed? I need it because I what to have reverse in my car...
I will be grateful for hints...