Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes

I've been integrating Wwise into our game and it seems to run ok on PC and in the editor but crashes on Quest. This seems to happen just after loading the level and started happening after adding some code to trigger events when physics objects collide. The code is basically:

public class CollisionSfx : MonoBehaviour
{
    public AK.Wwise.Event ImpactEvent;
    public AK.Wwise.Switch MaterialType;
    public AK.Wwise.RTPC ImpactMass, ImpactVelocity;
    private Rigidbody body;

    void Awake() {
        body = GetComponent<Rigidbody>();
    }

    void OnCollisionEnter(Collision collision)
    {
        MaterialType.SetValue(gameObject);
        ImpactMass.SetValue(gameObject, body.mass);
        ImpactVelocity.SetValue(gameObject, collision.relativeVelocity.magnitude);
        ImpactEvent.Post(gameObject);
    }
}

Any one out there got any ideas?

in General Discussion by Joe B. (170 points)

Please sign-in or register to answer this question.

...