On Fri, Jan 16, 2009 at 5:47 AM, Niels Ulrik <[email protected]> wrote: > > Can I get the impact power from below callback fuction with any of the > parameters provides? > I read somewhere cocos2d do not have collision detection. > If there no way I can get a float value to read how big an impact a > shape has? > Regards > Niels > > static int collFunc0(cpShape *a, cpShape *b, cpContact *contacts, int > numContacts, cpFloat normal_coef, void *data) > { > > cpVect v = cpContactsSumImpulses(contacts, numContacts); > if (cpvdot (v,v) == 0.000) ????????????????? > > PlaySound (BELL1); //data = the sound number to play > > > return 1; > } >
This looks like C code from Chipmunk. Have you tried using pymunk? I didnt quite understand your question, sorry. Lucio. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
