Hi Kjelle (& Walaber)
I'm having a problem with my current project which is completely relient on Newton. It has to do with Material collision.
My player is moving along a tiled level. I have separate tree collisions for each material which span the entire level. I also have code to see if certain materials are being "touched" by my player using NDB_GetCollisionBodyToMaterial. The problem is after a while it seems that the collided material gets "stuck" on one of the materials, even if the player is no longer near it.
I'm not very good at C++, and the wrapper is quite extensive, but it's possible I stumbled upon the problem in the wrapper source (although it is the 1.30 source so maybe it's different in 1.32)?
File: NewtonDBP.h
Method: NewtonDBP_CollisionData::Clear()
It's not clearing these two variables:
int mat1;
int mat2;
Could you look into this and let me know if it can be fixed and the wrapper updated? I would appreciate it immensely!! If what I said above is total bupkiss, I can try looking into making a small program to show the issue but it would take a bit to do.
Thanks for any help bud!!
I'm not a real programmer but I play one with DBPro!