Commits

German Larrain  committed 5b4d2a3

simulator.Simulation: removed 'add_obstacle' which was only used by the ragdoll demos.

  • Participants
  • Parent commits 000930d

Comments (0)

Files changed (1)

File ars/model/simulator/__init__.py

 		name = "floor"
 		return self.add_object(SimulatedBody(name, actor=gFloor))
 
-	def add_obstacle(self, length=0.25, radius=0.15):
-		# create an obstacle
-		# TODO: create this using "add_capsule"
-		obstacle = phs.Capsule(self._world, self._space, length=length, radius=radius, density=1000)
-		pos = (random.uniform(-0.3, 0.3), 0.2, random.uniform(-0.15, 0.2))
-		#pos = (-0.27752817947085257, 0.20000000000000001, -0.071494489985067272)
-
-		# TODO: apply transformation using SimulatedBody methods
-		obstacle.set_position(pos) #TODO: necessary?
-		obstacle.set_rotation(mu.rightRot) #TODO: necessary?
-
-		g_capsule = gp.Capsule(length, radius, pos)
-		name = "obstacle"
-		return self.add_object(SimulatedBody(name, obstacle, g_capsule))
-
 	def add_sphere(self, radius, center, mass=None, density=None):
 		body = phs.Sphere(self._world, self._space, radius, mass, density)
 		body.set_position(center)