mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
magic number is now RATIO
This commit is contained in:
parent
81fe7be743
commit
86005c8b16
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ define(requires, function (DomController, Three, Settings, CameraController) {
|
||||||
ViewController.prototype.render = function () {
|
ViewController.prototype.render = function () {
|
||||||
if(this.player) {
|
if(this.player) {
|
||||||
var pos = this.player.getDoll().getBody().GetPosition();
|
var pos = this.player.getDoll().getBody().GetPosition();
|
||||||
this.cameraController.setPosition(pos.x * 35, -(pos.y * 35));
|
this.cameraController.setPosition(pos.x * Settings.RATIO, -(pos.y * Settings.RATIO));
|
||||||
}
|
}
|
||||||
this.renderer.render(this.scene, this.cameraController.getCamera());
|
this.renderer.render(this.scene, this.cameraController.getCamera());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue