bigbob85
18-05-2009 03:40:36
Hey,
Im trying to add wheels to my forklift for my game. I got working wheels so I can drive and steer, but I cant attach a mesh to them.
We've tried making a node renderable param like so,
with node_forklift_rr_wheel being a scene node of the wheel. Which just spawns, and stays at 0,0,0.
i create my wheels like so,
m_wheelSet = NxOgre::WheelSet::createFourWheelSet(5.0f , NxOgre::float3( -20, 8, -50), NxOgre::float3( 20, 8 ,0), body, wheelP, wNRP);
Any ideas whats wrong or what I can do to fix it.
Using latest ogre and NxOgre 1.0.22T5.
Im trying to add wheels to my forklift for my game. I got working wheels so I can drive and steer, but I cant attach a mesh to them.
We've tried making a node renderable param like so,
NxOgre::NodeRenderableParams wNRP;
wNRP.setToDefault();
wNRP.mIdentifierUsage = NxOgre::NodeRenderableParams::IU_Use;
wNRP.mIdentifier = node_forklift_rr_wheel->getName();
wNRP.mMode = RenderableSource::RM_Interpolate;
wNRP.mGraphicsModelScale = NxVec3(2, 2, 2);
//wNRP.mGraphicsModel = "forklift_wheel.mesh";
//wNRP.mGraphicsModelMaterial = "forklift_wheel";
with node_forklift_rr_wheel being a scene node of the wheel. Which just spawns, and stays at 0,0,0.
i create my wheels like so,
m_wheelSet = NxOgre::WheelSet::createFourWheelSet(5.0f , NxOgre::float3( -20, 8, -50), NxOgre::float3( 20, 8 ,0), body, wheelP, wNRP);
Any ideas whats wrong or what I can do to fix it.
Using latest ogre and NxOgre 1.0.22T5.