#NEWLINE# def step( self ) : #NEWLINE# #INDENT# ' Here the ode physics is calculated by one step. ' #NEWLINE# self . _printfunc ( ) #NEWLINE# self . space . collide ( ( self . world , self . contactgroup ) , self . _near_callback ) #NEWLINE# self . world . step ( float ( self . dt ) ) #NEWLINE# self . contactgroup . empty ( ) #NEWLINE# for s in self . sensors : #NEWLINE# #INDENT# s . _update ( ) #NEWLINE# #UNINDENT# if ( self . render and self . updateDone ) : #NEWLINE# #INDENT# self . updateClients ( ) #NEWLINE# if ( ( self . server . clients > 0 ) and self . realtime ) : #NEWLINE# #INDENT# time . sleep ( self . dt ) #NEWLINE# #UNINDENT# #UNINDENT# self . stepCounter += 1 #NEWLINE# return self . stepCounter