How to detect whether a collision occurs?

manuyavuz
Posts: 6
Joined: Tue Feb 22, 2011 1:47 pm

How to detect whether a collision occurs?

Post by manuyavuz »

Hi,

I am trying to use a sound effect when any two collision object collide, but i can't find a method to detect whether a collision occurs or not. How could i understand when a collision occurs, is there a function giving this info?
winspear
Posts: 77
Joined: Thu Nov 26, 2009 6:32 pm

Re: How to detect whether a collision occurs?

Post by winspear »

You have to use collision callbacks or triggers.

http://bulletphysics.org/mediawiki-1.5. ... d_Triggers

Thanks
manuyavuz
Posts: 6
Joined: Tue Feb 22, 2011 1:47 pm

Re: How to detect whether a collision occurs?

Post by manuyavuz »

Thanks for help winspear, i couldn't have found the related post when searcing for it, it helped very much.

Thanks again.