+
+def collides_all(a, others):
+ """Filter the second argument to those that collide with the first.
+
+ This is equivalent to filter(lambda o: collides(a, o), others),
+ but is much faster when the compiled extension is available (which
+ it is not currently).
+
+ """
+ return filter(lambda o: collides(a, o), others)
+
+try:
+ from bulletml._collision import collides, overlaps, collides_all
+except ImportError:
+ pass