Esempio n. 1
0
    public static void createAndPlay(string name, ContactInfo contactInfo)
    {
        Vector3 pos = Vector3.zero;

        if (contactInfo.selfVertex != null)
        {
            pos = contactInfo.selfVertex.pos;
        }
        else
        {
            pos = Math3D.AveragePos(contactInfo.selfSurface.points);
        }
        createAndPlay(name, pos);
    }