triangle collision meshes.

beta.r3js.org
polygonboutique 2016-11-01 16:32:06 +01:00
parent ede2c774e8
commit 239e416220
1 changed files with 5 additions and 4 deletions

View File

@ -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);