triangle collision meshes.
parent
ede2c774e8
commit
239e416220
|
@ -12,14 +12,14 @@ GameLib.D3.Game.prototype.addScene = function(
|
|||
};
|
||||
|
||||
GameLib.D3.Game.prototype.processPhysics = function (
|
||||
timestep
|
||||
dt
|
||||
) {
|
||||
for(var s in this.scenes) {
|
||||
var scene = this.scenes[s];
|
||||
|
||||
for(var w in scene.worlds) {
|
||||
var world = scene.worlds[w];
|
||||
world.step(timestep);
|
||||
world.step(dt);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -36,14 +36,15 @@ GameLib.D3.Game.prototype.render = function(
|
|||
};
|
||||
|
||||
GameLib.D3.Game.prototype.update = function(
|
||||
dt
|
||||
dt,
|
||||
fixedDt
|
||||
) {
|
||||
for(var s in this.scenes) {
|
||||
var scene = this.scenes[s];
|
||||
|
||||
for(var w in scene.worlds) {
|
||||
var world = scene.worlds[w];
|
||||
world.step(dt);
|
||||
world.step(fixedDt);
|
||||
}
|
||||
|
||||
scene.update(dt);
|
||||
|
|
Loading…
Reference in New Issue