I'm trying to use newton to create rigid bodies around my Meshed objects. For starters my terrain scene node I havent even started on but I know I cant use bounding boxes for it. Im thinking along the lines of a collision tree like the tutorials use for quake 3 maps. But thats a different issue. My primary concern is using Irrlicht to get the bounding box and then using that data to create my bounding box in newton. So I have the following:
Code: Select all
collision = NewtonCreateBox(m_nWorld,
node->getTransformedBoundingBox().getExtent().X/2,
node->getTransformedBoundingBox().getExtent().Y/2,
node->getTransformedBoundingBox().getExtent().Z/2,
m_ObjectList.size();,NULL);
Also how does one go about creating a collision for just a camera scene node?
