File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class Core
73
73
74
74
static preUpdateWithPhysics ( elapsedTime )
75
75
{
76
- setInterval ( function ( ) { Core . app . physicsWorld . stepSimulation ( elapsedTime , 60 ) ; } , 20 ) ;
76
+ Core . app . physicsWorld . stepSimulation ( elapsedTime , 60 ) ;
77
77
Core . preUpdate ( elapsedTime ) ;
78
78
}
79
79
Original file line number Diff line number Diff line change @@ -70,14 +70,14 @@ class Project
70
70
'webgl/ammo/ammosphere.js' ,
71
71
'webgl/ammo/ammobox.js'
72
72
] ) ) ;
73
- this . physicsLoader . derivesIn ( this . physicsHandlersLoader ) ;
74
73
Projects . alreadyLoadedPhysics = true ;
75
74
}
76
75
else
77
76
{
78
- this . physicsPreLoader = new ResourceLoader ( [ ] ) ;
77
+ this . physicsHandlersLoader = new ResourceLoader ( [ ] ) ;
79
78
this . physicsLoader = new ResourceLoader ( [ ] ) ;
80
79
}
80
+ this . physicsLoader . derivesIn ( this . physicsHandlersLoader ) ;
81
81
}
82
82
83
83
setAssetsLoader ( )
You can’t perform that action at this time.
0 commit comments