CallbackCollision between two bodies with the same material?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

CallbackCollision between two bodies with the same material?

Postby meds » Sat Dec 20, 2008 7:05 am

If I have two bodies with the same material how can I get a collision callback between them? From what I've seen in the API you can only set callbacks between two different materials.

Also if I have two static bodies and they intersect would it register as a collision callback?
meds
 
Posts: 6
Joined: Sat Dec 20, 2008 7:01 am

Re: CallbackCollision between two bodies with the same material?

Postby JernejL » Sat Dec 20, 2008 7:20 am

Ofcourse you can also set up callback between the same material.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: CallbackCollision between two bodies with the same material?

Postby agi_shi » Sat Dec 20, 2008 10:19 am

Just use the same material id in the set callback function.

Also, statics don't register a collision callback with each other. Only dynamic-dynamic or dynamic-static.
agi_shi
 
Posts: 263
Joined: Fri Aug 17, 2007 6:54 pm

Re: CallbackCollision between two bodies with the same material?

Postby meds » Sat Dec 20, 2008 10:44 am

agi_shi wrote:Just use the same material id in the set callback function.

Also, statics don't register a collision callback with each other. Only dynamic-dynamic or dynamic-static.


Oh ok I see.

Is there any way of checking for static/static overlapping?
meds
 
Posts: 6
Joined: Sat Dec 20, 2008 7:01 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 11 guests

cron