Module org.dyn4j

Class TypedFallbackCondition

    • Constructor Detail

      • TypedFallbackCondition

        public TypedFallbackCondition()
        Default constructor.
      • TypedFallbackCondition

        public TypedFallbackCondition​(int sortIndex)
        Optional constructor.
        Parameters:
        sortIndex - the sort index of this condition
    • Method Detail

      • isMatch

        public abstract boolean isMatch​(Class<? extends Convex> type1,
                                        Class<? extends Convex> type2)
        Returns true if the given types match this condition.
        Parameters:
        type1 - the type of the first Convex
        type2 - the type of the second Convex
        Returns:
        boolean