mongoose7 wrote:irr::scene::IParticleBoxEmitter* irr::scene::IParticleSystemSceneNode::createBoxEmitter(const irr::core::aabbox3df&, const irr::core::vector3df&, irr::u32, irr::u32, const irr::video::SColor&, const irr::video::SColor&, irr::u32, irr::u32, irr::s32, const irr::core::dimension2df&, const irr::core::dimension2df&)
The integer variables here are all irr::u32 - a 32-bit integer, that is 'int'. If you try to pass a 'float', that is, irr::f32, for one of these variables, the compiler will complain, I think.


IMesh* mesh2 = device->getSceneManager()->getMesh("sphere.b3d");
IMeshSceneNode* softbodyNode = device->getSceneManager()->addMeshSceneNode(mesh2);
softbodyNode->setMaterialTexture(0, device->getVideoDriver()->getTexture("water.jpg"));
softbodyNode->setAutomaticCulling(EAC_OFF);
softbodyNode->setScale(vector3df(20,20,20));
softbodyNode->setMaterialFlag(EMF_LIGHTING, false);
softbodyNode->setMaterialFlag(EMF_NORMALIZE_NORMALS, true);
softbodyNode->setPosition(vector3df(0, 30, 0));
softbodyNode->setRotation(vector3df(0,-90,-90));
//softbodyNode->setDebugDataVisible(EDS_BBOX);
ISoftBody* softbody = world->addSoftBody(softbodyNode);
softbody->setName("SOFTBODY1");
softbody->setActivationState(EAS_DISABLE_DEACTIVATION);
if(false)
{
softbody->generateClusters(60.0f);
softbody->addCollisionFlag(ESBCM_CLUSTER_SOFT_VERSUS_SOFT);
}
softbody->getConfiguration().poseMatchingCoefficient = 0.0;
softbody->updateConfiguration();
softbody->generateBendingConstraints(2);
softbody->randomizeConstraints();
IGImpactMeshShape* rshape = new IGImpactMeshShape(vehicleNode, rodaNode->getMesh(), 50.0);
IRigidBody* rigidBodyRoda = world->addRigidBody(rshape);
rigidBodyRoda->setActivationState(EAS_DISABLE_DEACTIVATION);
rodaNode->setPosition(wheel.chassisConnectionPointCS);
Return to Project Announcements
Users browsing this forum: No registered users and 1 guest