Exemplo n.º 1
0
        private CollisionRule CustomCollisionRuleCalculator(ICollisionRulesOwner aOwner, ICollisionRulesOwner bOwner)
        {
            CollisionRules a         = aOwner.CollisionRules;
            CollisionRules b         = bOwner.CollisionRules;
            CollisionRule  groupRule = CollisionRules.GetGroupCollisionRuleDefault(a, b);

            if (groupRule == CollisionRule.NoBroadPhase)
            {
                return(groupRule);
            }

            return(CollisionRules.GetCollisionRuleDefault(aOwner, bOwner));
        }