Commits

German Larrain committed 79b976a

bugfix in simulator.add_capsule function

  • Participants
  • Parent commits 8f49def
  • Branches dev-density-mass

Comments (0)

Files changed (1)

File ars/model/simulator/__init__.py

 		return self.add_object(SimulatedObject(name, body, g_cylinder))
 
 	def add_capsule(self, length, radius, center, mass=None, density=None):
-		body = phs.Capsule(self._world, self._space, length, radius, mass. density)
+		body = phs.Capsule(self._world, self._space, length, radius, mass, density)
 		body.set_position(center)
 
 		g_capsule = gp.Capsule(length, radius, center)