just to be sure with call backs

themadme

27-03-2008 12:43:19

mKnifeGroup->setCallback(mCallback);

mKnifeGroup->setCollisionCallback(mButterKnifeGroup, NX_NOTIFY_ALL, true);

so saying setcallback is a way of telling things how they should react when the two objects touch and setCollisionCallback is saying this is the second group that is meant to contact with each other?

is that correct?

betajaen

27-03-2008 13:21:59

Yep. It notifies mCallback of all events when mKnifeGroup is in contact with mBufferKnifeGroup.

themadme

27-03-2008 15:20:22

could i also say

mKnifeGroup->setCollisionCallback( mKnifeGroup, NX_NOTIFY_ALL, true);

as well, to test other object in the same group are colliding too. I presuming this would work but checking to see?

themadme

28-03-2008 00:38:44

thanks

themadme

28-03-2008 01:10:27

also would this crash if i just call

mKnifeGroup->setCollisionCallback(mButterKnifeGroup, NX_NOTIFY_ALL, true);

with out calling mKnifeGroup->setCallBack( mCallback );

before hand, just out of curiosity???