예제 #1
0
        internal void UncacheShape(ulong meshHash, PhysicsShape shape, ShapeType shapeType)
        {
            ShapeCache cache = FindCorrespondingCache(shapeType);

            cache.RemoveShape(meshHash, shape);
        }
예제 #2
0
        internal void CacheShape(ulong meshHash, PhysicsShape phyShape, ShapeType bestFitShape)
        {
            ShapeCache cache = FindCorrespondingCache(bestFitShape);

            cache.AddShape(meshHash, phyShape);
        }