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