Universe.Physics.BulletSPlugin.BSShapeGImpact.TryGetGImpactByPtr C# (CSharp) Method

TryGetGImpactByPtr() public static method

public static TryGetGImpactByPtr ( BulletShape pShape, BSShapeGImpact &outHull ) : bool
pShape BulletShape
outHull BSShapeGImpact
return bool
        public static bool TryGetGImpactByPtr(BulletShape pShape, out BSShapeGImpact outHull)
        {
            bool ret = false;
            BSShapeGImpact foundDesc = null;
            lock (GImpacts)
            {
                foreach (BSShapeGImpact sh in GImpacts.Values)
                {
                    if (sh.physShapeInfo.ReferenceSame(pShape))
                    {
                        foundDesc = sh;
                        ret = true;
                        break;
                    }
                }
            }
            outHull = foundDesc;
            return ret;
        }
    }