FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Hook a sound to a physics collision

2 posters

Go down

Hook a sound to a physics collision Empty Hook a sound to a physics collision

Post  brcimo Wed Aug 05, 2009 2:54 pm

How do you check if an object collides off another and make it trigger a sound if it does? Any ideas? Thank You.

brcimo

Posts : 5
Join date : 2009-08-03

Back to top Go down

Hook a sound to a physics collision Empty Re: Hook a sound to a physics collision

Post  sio2interactive Wed Aug 05, 2009 3:28 pm

Check the Bullet SDK for material callback... or you can also use SIO2sensor...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Hook a sound to a physics collision Empty Re: Hook a sound to a physics collision

Post  brcimo Wed Aug 05, 2009 4:15 pm

I'm kinda of new to sio2, how would you use the sensor?

brcimo

Posts : 5
Join date : 2009-08-03

Back to top Go down

Hook a sound to a physics collision Empty Re: Hook a sound to a physics collision

Post  sio2interactive Wed Aug 05, 2009 5:13 pm

Take a look at sio2_sensor.cc... its pretty straight forward... just make sure that you add the SIO2_EVALUATE_SENSOR mask to the sio2ResourceRender function...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Hook a sound to a physics collision Empty Re: Hook a sound to a physics collision

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum