smirnof.pl
18-04-2006 16:55:03
Hello,
I have question about collisions betwen objects. I know if I want to add event (for example - sound when box hit the ground) I have to use material callbacks and these functions: userBegin(), userProcess(), userEnd(). But I dont know how to check in userBegin() or in userProcess() if m_body0 and m_body1 collided. My userBegin() and userProcess() allways return 1, so userEnd() is executeted when objects are not collide but their AABB overlap. It cause that event sound is played when objects not collide.
I hope you can understand my problem
thanks in advance
I have question about collisions betwen objects. I know if I want to add event (for example - sound when box hit the ground) I have to use material callbacks and these functions: userBegin(), userProcess(), userEnd(). But I dont know how to check in userBegin() or in userProcess() if m_body0 and m_body1 collided. My userBegin() and userProcess() allways return 1, so userEnd() is executeted when objects are not collide but their AABB overlap. It cause that event sound is played when objects not collide.
I hope you can understand my problem
thanks in advance