mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	Lots of work on Audio & Physics engine:
-Added new 3D stream player node -Added ability for Area to capture sound from streams -Added small features in physics to be able to properly guess distance to areas for sound -Fixed 3D CollisionObject so shapes are added the same as in 2D, directly from children -Fixed KinematicBody API to make it the same as 2D.
This commit is contained in:
		
							parent
							
								
									e64b82ebfc
								
							
						
					
					
						commit
						2e73be99d8
					
				
					 64 changed files with 3834 additions and 2497 deletions
				
			
		|  | @ -1525,11 +1525,15 @@ static uint64_t idle_process_max = 0; | |||
| bool Main::iteration() { | ||||
| 
 | ||||
| 	uint64_t ticks = OS::get_singleton()->get_ticks_usec(); | ||||
| 	Engine::get_singleton()->_frame_ticks = ticks; | ||||
| 
 | ||||
| 	uint64_t ticks_elapsed = ticks - last_ticks; | ||||
| 
 | ||||
| 	double step = (double)ticks_elapsed / 1000000.0; | ||||
| 	float frame_slice = 1.0 / Engine::get_singleton()->get_iterations_per_second(); | ||||
| 
 | ||||
| 	Engine::get_singleton()->_frame_step = step; | ||||
| 
 | ||||
| 	/*
 | ||||
| 	if (time_accum+step < frame_slice) | ||||
| 		return false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Juan Linietsky
						Juan Linietsky