gbisocoli
24-04-2009 18:54:00
I get this:
the code is:
I look into NxOgreBody.h and:
What's going on?
1>f:\mis documentos\visual studio 2008\projects\soccer\src\actors.cpp(81) : error C2783: 'NxOgre::Actor *NxOgre::Scene::createBody(const NxOgre::NxString &,NxOgre::Shape *,const NxOgre::Pose &,const NxOgre::NodeRenderableParams &,const NxOgre::ActorParams &)' : could not deduce template argument for 'BodyClass'
1> d:\ides\nxogre\include\nxogrescene.h(439) : see declaration of 'NxOgre::Scene::createBody'
1>f:\mis documentos\visual studio 2008\projects\soccer\src\actors.cpp(81) : error C2780: 'NxOgre::Actor *NxOgre::Scene::createBody(const NxOgre::VisualIdentifier &,NxOgre::Shape *,const NxOgre::Pose &,const NxOgre::ActorParams &)' : expects 4 arguments - 5 provided
1> d:\ides\nxogre\include\nxogrescene.h(417) : see declaration of 'NxOgre::Scene::createBody'
the code is:
void Player::createBody(Vector3 pos, float scale)
{
// create node renderable parms for body
NodeRenderableParams nrp;
nrp.setToDefault();
nrp.mIdentifierUsage = NxOgre::NodeRenderableParams::IU_Use;
nrp.mIdentifier = mNode->getName();
// create body (name,shape,position,node renderable params,actor params)
// actor params is for example mass
mBody = mNxScene->createBody(name+"_body",new Cube(scale*2),pos,nrp,"mass:21"); // <--Here
}
I look into NxOgreBody.h and:
/** \brief Body constructor with full visualisation.
\example
<code>
mSceneMgr->createBody("myBody", new CubeShape(2,2,2), Vector3(0,5,0), "model: cube.1m.mesh, scale: 2 2 2", "mass: 10");
</code>
*/
Body(const NxString&, Scene*, Shape*, const Pose&, const NodeRenderableParams&, const ActorParams&);
What's going on?