public static bool TryGetCompoundByPtr(BulletShape pShape, out BSShapeCompound outCompound) { lock (CompoundShapes) { string addr = pShape.AddrString; return CompoundShapes.TryGetValue(addr, out outCompound); } }