Questions et réponses de la communauté

Bienvenue sur le forum de questions et réponses d'Audiokinetic, propulsé par la communauté. C'est l'endroit où les utilisateurs de Wwise et Strata s'entraident. Pour obtenir une aide directe de notre équipe, veuillez utiliser la page « Tickets de soutien ». Pour signaler un bug, utilisez l'option Bug Report dans l'Audiokinetic Launcher. (Veuillez noter que les rapports de bug soumis au forum questions-réponses seront rejetés. L'utilisation de notre système de rapport de bug dédié garantit que votre rapport est vu par les bonnes personnes et a les meilleures chances d'être corrigé.)

Pour obtenir rapidement les meilleures réponses, suivez ces conseils lorsque vous posez une question :

  • Soyez précis : qu'essayez-vous de réaliser ou quel est le problème spécifique que vous rencontrez ?
  • Pensez à inclure les détails importants : incluez des détails tels que les versions de Wwise et du moteur de jeu, le système d'exploitation, etc.
  • Expliquez ce que vous avez essayé de faire : indiquez aux autres les mesures que vous avez déjà prises pour essayer de résoudre le problème.
  • Concentrez-vous sur les faits : décrivez les aspects techniques de votre problème. Se concentrer sur le problème aide les autres personnes à trouver rapidement une solution.

0 votes

Hello, people with more knowledge than me! I recently started learning the Wwise-Unreal combo, and I have a question about a specific thing I want to achieve.

What I want: Play an event with a switch container at the location of a collision, based on the surface material (for example, a box bouncing on different types of floor).

The problem I faced (using only Blueprints) is that I can’t use the ‘Post Event at Location’ node because I couldn’t find a way to pass the switch parameter. Using ‘Post Event’ on one of the collision actors doesn’t work well either, because the sound attaches to the actor, which isn’t the desired result for accurate sound positioning.

My solution so far was to spawn and destroy an actor with an AkComponent at the collision location, passing the correct switch value, impact strength, etc.

I’m unsure, though, if this is a good solution (I imagine using a small actor pool might be better), or if there’s a better way to achieve this without C++—which I still need to explore.

Any suggestions?

dans General Discussion par Sergi S. (100 points)

1 Réponse

0 votes
You got it right Sergi. Using a small pool of collision actors is a good approach. You can also explore the Impacter plugin, it can yield pretty good results for physics based collisions. But also in this case, beware of spawning new actors every time. Otherwise you will quickly run into GC-caused game thread stuttering.
par Adrian J. (380 points)
...