Hook a sound to a physics collision

View previous topic View next topic Go down

Hook a sound to a physics collision

Post  brcimo on 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

View user profile

Back to top Go down

Re: Hook a sound to a physics collision

Post  sio2interactive on Wed Aug 05, 2009 3:28 pm

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

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Hook a sound to a physics collision

Post  brcimo on 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

View user profile

Back to top Go down

Re: Hook a sound to a physics collision

Post  sio2interactive on 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...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Hook a sound to a physics collision

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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