1. German Larrain
  2. ars

Commits

German Larrain  committed 8cb61d5

physics.adapters.OdeBody: added docstrings to class and constructor.

  • Participants
  • Parent commits e9bf6f1
  • Branches dev

Comments (0)

Files changed (1)

File ars/model/physics/adapters.py

View file
  • Ignore whitespace
 
 
 class OdeBody(object):
+
+	"""Abstract class, sort of equivalent to :class:`ode.Body`."""
+
 	__metaclass__ = ABCMeta
 
 	def __init__(self, world, space, mass=None, density=None, *args, **kwargs):
+		"""Constructor.
+
+		:param world:
+		:type world: :class:`.base.World`
+		:param space:
+		:type space: :class:`.collision.base.Space`
+		:param mass:
+		:type mass: float or None
+		:param density:
+		:type density: float or None
+
+		"""
 		self._inner_object = None
 
 	#==========================================================================