We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac02e3d commit a07e3abCopy full SHA for a07e3ab
js/main.js
@@ -37,8 +37,7 @@ let saturn = new Celestial({
37
velocity: new Vector(15.26e3, 0),
38
size: 18, // not to scale
39
});
40
-console.log(new Point(0, -389) || "Point is falsey???");
41
model.scene.push(saturn);
42
model.scene.push(titan);
43
-view.render();
+view.loop();
44
console.log(model);
js/modules/Renderer.js
@@ -49,6 +49,6 @@ export default class Renderer {
49
/** Render on animationFrame */
50
loop() {
51
if (this.running) this.render();
52
- requestAnimationFrame(this.loop);
+ requestAnimationFrame(this.loop.bind(this));
53
}
54
0 commit comments