[solved] MogreNewt problem with treecollision

nargil

25-10-2007 22:22:21

this is how i add a model to the scene

ent = sceneMgr.CreateEntity(name, file);
node = sceneMgr.RootSceneNode.CreateChildSceneNode(name + "Node");
node.AttachObject(ent);
node.SetPosition(0f, 0f, 100f);

MogreNewt.Debugger.Instance.HideLines();
MogreNewt.CollisionPrimitives.TreeCollision stat_col = new MogreNewt.CollisionPrimitives.TreeCollision(m_World, ent, false);
bod = new MogreNewt.Body(m_World, stat_col);
stat_col.Dispose();
MogreNewt.Debugger.Instance.ShowLines(m_World);


and this is what i get:



What am I doing wrong ?



edit: fixed the problem. I used Newton.dll from newtonsdk\sdk\dll_double instead of newtonsdk\sdk\dll