anileci
21-03-2007 05:48:35
I have searched all the topics about collision detect in the forum.
I found the customContactReporter class can report the collision with two bodies.
Because the scene have the method mScene->createContactPair(myCube1,myCube2);
But in my case, I want to detect myCube1 with all the other shape(many of them are static).
Do I have to call n times createContactPair(myCube1,myCuben) ?
Is there have some earier code to implement this?
thanks.
I found the customContactReporter class can report the collision with two bodies.
Because the scene have the method mScene->createContactPair(myCube1,myCube2);
But in my case, I want to detect myCube1 with all the other shape(many of them are static).
Do I have to call n times createContactPair(myCube1,myCuben) ?
Is there have some earier code to implement this?
thanks.