Removed debug-print and typo
This commit is contained in:
		
							parent
							
								
									6e1d6a9fd3
								
							
						
					
					
						commit
						74ebb6e250
					
				@ -60,7 +60,7 @@ class Entity(object):
 | 
			
		||||
            return
 | 
			
		||||
        self._crash_list.append(other)
 | 
			
		||||
        force_dir = self._get_crash_force_dir(other)
 | 
			
		||||
        print(force_dir, depth)
 | 
			
		||||
        #print(force_dir, depth)
 | 
			
		||||
        force_dir_len = math.sqrt(force_dir[0]**2+force_dir[1]**2)
 | 
			
		||||
        if force_dir_len == 0:
 | 
			
		||||
            return
 | 
			
		||||
 | 
			
		||||
@ -312,7 +312,7 @@ class ColumbusEnv(gym.Env):
 | 
			
		||||
            L, V = th.linalg.eig(cov)
 | 
			
		||||
            L, V = L.real, V.real
 | 
			
		||||
            w, h = int(abs(L[0].item()*f))+1, int(abs(L[1].item()*f))+1
 | 
			
		||||
            # In theory we would ahve to solve:
 | 
			
		||||
            # In theory we would have to solve:
 | 
			
		||||
            # R = [[cos, -sin],[sin, cos]]
 | 
			
		||||
            # But we only use the -sin term.
 | 
			
		||||
            # Because of this our calculated angle might be wrong
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user