Commits

German Larrain  committed 96185db

collision.base: added class ContactGroup.

  • Participants
  • Parent commits 7c98ff3

Comments (0)

Files changed (1)

File ars/model/collision/base.py

 #==============================================================================
 
 
+class ContactGroup(object):
+
+	"""Wrapper around a collection-like class storing contact data instances.
+
+	What these instances are (attributes, behavior) is up to the
+	implementation of the adpater.
+
+	"""
+
+	@abstractmethod
+	def __init__(self):
+		self._inner_object = None
+
+	@abstractmethod
+	def empty(self):
+		"""Remove all the stored contact data instances."""
+		pass
+
+	@property
+	def inner_object(self):
+		return self._inner_object
+
+
 class RayContactData(object):
 
 	"""Data structure to save the contact information of a collision