pNode = smgr->addSceneNode(CIrrOdeSceneNode::nodeNameToC8(IRR_ODE_GEOM_HEIGHTFIELD_NAME), pTerrain);
CIrrOdeGeomHeightfield *hf = reinterpret_cast<CIrrOdeGeomHeightfield *>(pNode);
hf->setID(1);
hf->getSurfaceParameters(0)->setModeBounce(false);
hf->getSurfaceParameters(0)->setMaxLinearVelocity(0.0001f, 0.0f);
hf->getSurfaceParameters(0)->setMaxAngularVelocity(0.0001f, 0.0f);
hf->getSurfaceParameters(0)->setDampsObjects(false);
hf->getSurfaceParameters(0)->setSoftErp(0.00005f);
hf->getSurfaceParameters(0)->setSoftCfm(0.00005f);
hf->getSurfaceParameters(0)->setSlip1(0.0f);
hf->getSurfaceParameters(0)->setSlip2(0.0f);
hf->getSurfaceParameters(0)->setMode(dContactSoftERP);
hf->getSurfaceParameters(0)->setMu2(0);
hf->setCollide(true);
hf->drop(); CIrrOdeGeom *pGeom=NULL;
scene::ISceneNode *pDummy=smgr->addSceneNode(CIrrOdeSceneNode::nodeNameToC8(IRR_ODE_BODY_NAME),worldNode);
CIrrOdeBody *pNewBody=reinterpret_cast<CIrrOdeBody *>(pDummy);
pNewBody->setID(2);
scene::IAnimatedMesh* mesh = smgr->getMesh("data/models/MALP/malp.3ds");
malp = smgr->addAnimatedMeshSceneNode( mesh , pNewBody);
malp->setPosition(core::vector3df(5000,2000,20000));
malp->setScale(core::vector3df(10.0f,10.0f,10.0f));
malp->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true);
malp->setMaterialFlag(video::EMF_FOG_ENABLE, false);
malp->setMaterialFlag(video::EMF_LIGHTING, true);
pDummy=smgr->addSceneNode(CIrrOdeSceneNode::nodeNameToC8(IRR_ODE_GEOM_TRIMESH_NAME),malp);
pGeom=reinterpret_cast<CIrrOdeGeom *>(pDummy);
pGeom->setMassTotal(malp->getScale().getLength()/64);
pGeom->getSurfaceParameters(0)->setModeBounce(false);
pGeom->getSurfaceParameters(0)->setModeBounce(false);
pGeom->getSurfaceParameters(0)->setMaxLinearVelocity(0.0001f, 0.0f);
pGeom->getSurfaceParameters(0)->setMaxAngularVelocity(0.0001f, 0.0f);
pGeom->getSurfaceParameters(0)->setDampsObjects(false);
pGeom->getSurfaceParameters(0)->setSoftErp(0.00005f);
pGeom->getSurfaceParameters(0)->setSoftCfm(0.00005f);
pGeom->getSurfaceParameters(0)->setSlip1(0.0f);
pGeom->getSurfaceParameters(0)->setSlip2(0.0f);
pGeom->getSurfaceParameters(0)->setMode(dContactSoftERP);
//pGeom->getSurfaceParameters(0)->setMu(dInfinity);
pGeom->getSurfaceParameters(0)->setMu2(0);
pGeom->setCollide(true);
pGeom->drop();
Brainsaw wrote:I think I should add a list of dependencies to the homepage (and the initial post). You can find it either in the code snippets forum or on my homepage (http://bulletbyte.de/products.php?sub=irr&show=aps). I'll do a little update to the initial post right away.

MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _printf already defined in LIBCMTD.lib(printf.obj)
MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _sprintf already defined in LIBCMTD.lib(sprintf.obj)
MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
irrKlangSceneNode.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class irr::video::SMaterial irr::video::IdentityMaterial" (__imp_?IdentityMaterial@video@irr@@3VSMaterial@12@A)
Camera.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class irr::video::SMaterial irr::video::IdentityMaterial" (__imp_?IdentityMaterial@video@irr@@3VSMaterial@12@A)
irrode.lib(CIrrOdeSceneNode.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) class irr::video::SMaterial irr::video::IdentityMaterial" (__imp_?IdentityMaterial@video@irr@@3VSMaterial@12@A) referenced in function "public: virtual class irr::core::CMatrix4<float> __thiscall irr::scene::ISceneNode::getRelativeTransformation(void)const " (?getRelativeTransformation@ISceneNode@scene@irr@@UBE?AV?$CMatrix4@M@core@3@XZ)
irrode.lib(CIrrOdeDevice.obj) : error LNK2019: unresolved external symbol _dJointGetPRAngle referenced in function "public: virtual float __thiscall irr::ode::CIrrOdeDevice::jointGetPrAngle(unsigned int)" (?jointGetPrAngle@CIrrOdeDevice@ode@irr@@UAEMI@Z)
irrode.lib(CIrrOdeDevice.obj) : error LNK2019: unresolved external symbol _dJointGetPRAngleRate referenced in function "public: virtual float __thiscall irr::ode::CIrrOdeDevice::jointGetPrAngleRate(unsigned int)" (?jointGetPrAngleRate@CIrrOdeDevice@ode@irr@@UAEMI@Z)
f32 CIrrOdeDevice::jointGetPrAngle(u32 iJoint) {
return 0;//dJointGetPRAngle(GETJOINT(iJoint));
}
- I guess thats what I meant by the single lib. looks like I'm on version ode-0.11.1.Btw: are you using the latest ODE version (0.11.1)? Maybe that function got in with this release. I'm just asking because I never got that error, and I recompile IrrOde from time to time.
Is there a way to say OBJ1 can not touch OBJ 2,3,4,5,6. In other words, so that I can walk trough stuff whiling allowing those (2,3,4,5,6) objects to also interact whit the terrain.
I never get the timer back from the ODE, I just send it. My game is based on the irr engine timer, is that wrong?
BTW:when using capsule I get bad arguments in capsule.cpp:51. You talked about this error here
Return to Project Announcements
Users browsing this forum: No registered users and 1 guest