Open Robsteranium opened 10 years ago
Looks like newton.js and newton.min.js are two different versions somehow. If I use newton.min.js - I get "Newton.GLRenderer is not a function" error. With newton.js there is "Newton.Layer is not a function" error.
The code responsible in newton.min.js for creating layers seems to be the same as in newton.js.
c.prototype.Layer=function(){var b=a.Layer();return this.layers.push(b),b}
vs
Simulator.prototype.Layer = function() {
var newLayer = Newton.Layer();
return this.layers.push(newLayer), newLayer;
}
+1
Thanks for the heads up, I'll take a look.
@hunterloftis i ran into this as well. Also, could I possibly bother you to publish the latest updates to npm as well?
I'm a huge fan of what you're trying to do with this library, btw :)
... although it's called internally by Simulation.Layer() when creating layers.