Esempio n. 1
0
        public void HandCollisions()
        {
            AABB leftHandAABB = GetHandAABB();

            if (_grabbedVirus == null)
            {
                if (float.IsNaN(_handCenter.X))
                {
                    return;
                }

                _world.QueryAABB(AABBVirusHandCollision, ref leftHandAABB);
                if (_grabbedVirus != null)
                {
                    _grabbedVirus.Grabbed();
                    CreateVirusSprings();
                }
            }
        }