Ejemplo n.º 1
0
        protected override bool CanCollide(Body thisBody, Body otherBody, Physics2DDotNet.Ignorers.Ignorer other)
        {
            var body1        = (Jypeli.PhysicsBody)(thisBody.Tag);
            var body2        = (Jypeli.PhysicsBody)(otherBody.Tag);
            var otherIgnorer = other == null ? null : ((CollisionIgnorerAdapter)other).innerIgnorer;

            return(innerIgnorer.CanCollide(body1, body2, otherIgnorer));
        }
Ejemplo n.º 2
0
        protected override bool CanCollide(Body thisBody, Body otherBody, Physics2DDotNet.Ignorers.Ignorer otherIgnorer)
        {
            var other = (PhysicsBody)(otherBody.Tag);

            return(Adaptee.CanCollide((IPhysicsBody)thisBody.Tag, other, other.CollisionIgnorer));
        }