Re: Trigger repeating audio using SDL Mixer

#12
According to this post:
collisions between mat_bullet <-> mat_concrete and mat_bullet <-> mat_bullet.
...
That's it, let me know if things are still unclear.
I understand that mat_bullet = "\Assets\Materials\bullet.mtl"
But about mat_concrete = the default material - Objects/default/editorprimitive ? Is there any document about this?
Small tips
How to add an image to a forum post
[C++] How to smoothly turn your character

Re: Trigger repeating audio using SDL Mixer

#15
Hello,

mat_bullet is not a material it's a surface type. Every material can have a surface type which describes physical properties of that material like the friction or sound obstruction. All surface type are defined in a xml file which can be found here Assets\libs\MaterialEffects\SurfaceTypes.xml. In that file you can also define your own custom surface types as we did with the mat_bullet. Those types then can be used to trigger certain sounds on collision, for example when the mat_bullet type hits a mat_concrete type you can play the "Hit wall"' sound and if the mat_bullet type hits a mat_wood type you can play the "Hit wood" sound, I guess you get the idea. You can have a look at the Assets\Libs\MaterialEffects\MaterialEffects.xml file to maybe get a better idea of the system.

I hope this answers your question.

Cheers,
Alex

Re: Trigger repeating audio using SDL Mixer

#16
Hello,

mat_bullet is not a material it's a surface type. Every material can have a surface type which describes physical properties of that material like the friction or sound obstruction. All surface type are defined in a xml file which can be found here Assets\libs\MaterialEffects\SurfaceTypes.xml. In that file you can also define your own custom surface types as we did with the mat_bullet. Those types then can be used to trigger certain sounds on collision, for example when the mat_bullet type hits a mat_concrete type you can play the "Hit wall"' sound and if the mat_bullet type hits a mat_wood type you can play the "Hit wood" sound, I guess you get the idea. You can have a look at the Assets\Libs\MaterialEffects\MaterialEffects.xml file to maybe get a better idea of the system.

I hope this answers your question.

Cheers,
Alex
Hopefully a "UI connect sound to that mat type solution" will be available inside the Sandbox Editor in the future instead of manually adding lines externally in an Excel sheet / XML.

Who is online

Users browsing this forum: No registered users and 1 guest