Commits

German Larrain  committed 310a00c

simulator: reordered imports; whitespace changes

  • Participants
  • Parent commits 9087b82

Comments (0)

Files changed (1)

File ars/model/simulator/__init__.py

 import ars.exceptions as exc
 import ars.graphics.adapters as gp
 from ars.lib.pydispatch import dispatcher
+import ars.model.collision.adapters as coll
 #import ars.model.contrib.ragdoll as cb
 import ars.model.geometry.base as shapes
+import ars.model.physics.adapters as phs
 import ars.model.robot.joints as jo
 import ars.utilities.mathematical as mu
 
-import ars.model.collision.adapters as coll
-import ars.model.physics.adapters as phs
 
 SIM_PRE_STEP_SIGNAL = 'simulation pre step'
 SIM_PRE_FRAME_SIGNAL = 'simulation pre frame'
 
+
 class Simulation:
 
 	def __init__(self, FPS, STEPS_PF, do_debug = False):
 			# Detect collisions and create contact joints
 			coll_args = coll.NearCallbackArgs(self._world, self._contact_group)
 			self._space.collide(coll_args)
-			# Simulation step
+
+			# step world sim
 			time_step = self.get_time_step()
-
 			self._world.step(time_step)
 			self.sim_time += time_step
 			self.num_iter += 1