1. German Larrain
  2. ars

Commits

German Larrain  committed 5371b2f

simulator.Simulation: new method get_time_step, which computes the value based in FPS and steps per frame variables.

  • Participants
  • Parent commits 6f6e546
  • Branches dev

Comments (0)

Files changed (1)

File ars/model/simulator/__init__.py

View file
  • Ignore whitespace
 			# Detect collisions and create contact joints
 			self._space.collide((self._world, self._contact_group), coll.near_callback)
 			# Simulation step
-			time_step = self._DT / self._STEPS_PF
+			time_step = self.get_time_step()
 			
 			'''
 			if WRITE_DATA_FILES:
 		bs_joint = jo.BallSocket(self._world, body1, body2, anchor)
 		return self.add_joint(SimulatedJoint(name, bs_joint))
 	
+	def get_time_step(self):
+		return self._DT / self._STEPS_PF
 
 #===============================================================================
 #	 # see Ragdoll2.ars.RagdollPyOdeVtk