Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Newton problem with NDB_GetCollisionBodyToMaterial please help

Author
Message
tiresius
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 5th Dec 2005 06:28
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!
Kjelle69
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: Sweden 150 km north of arctic circle
Posted: 6th Dec 2005 11:05
Hey ! Great job looking that up, i Will check the source up to see if this solves the problem. However I will be on a trip to work with Simulator platforms this Week so I will try to fix this issue this weekend.

//Kjelle

-==The tame birds yearn, the wild ones dare to fly.==-
http://Mtec.hostname.nu

Login to post a reply

Server time is: 2024-11-21 18:38:20
Your offset time is: 2024-11-21 18:38:20