contact report between two kinematic bodies doesn't work

anear

16-05-2007 14:04:50

In my last simulation, I used contact report between a kinematic body and a dynamic body, and it worked fine. Now I'm working on a new simulation which need contact report between two kinematic bodies, e.g. a swimming fish and a hand, both are kinematic.

Once I changed the dynamic body in the working simulation to kinematic, the contact report doesn't work. The code in the onTouch() method is not executed.

I'm wondering if I can use contact report between two kinematic bodies, or I have to use Ogre's bounding box to implement this.

betajaen

16-05-2007 14:20:14

You could use an intersection.

anear

16-05-2007 14:27:07

Thanks for your reply, betajaen. Could you please explain more?

My previous post may not provide enough information. I'm trying to detect when two hands (both of which are linked to motion capture sensors) collide with a swimming fish which swims randomly (this means the fish is caught), so I can do some scoring and other things.

In this situation, both the fish and the hands are kinematic bodies. Contact report seems not working between two kinematic bodies.

You mentioned intersection. Is there any example of using it?

jchmack

17-05-2007 08:12:55

Thanks for your reply, betajaen. Could you please explain more?

You mentioned intersection. Is there any example of using it?


its in the tutorials. What version are you using? I don't believe that intersections have been implemented in 0.9.