Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        mContacts.Clear();
        foreach (var link in mParticleLinks)
        {
            link.CreateContacts(mContacts);
        }

        mResolver.SetIterations(10);
        mResolver.ResolveContacts(mContacts, Time.deltaTime);

        mForceManager.UpdateForceGenerators();
        mIntegrator.Integrate(Time.deltaTime);
        CheckBounds();
    }