I'm encountering an issue with executing an animation. Specifically, this problem arises within var ob1 = function() {};
. Once triggered, the animation runs for a brief period before I receive the error message
Uncaught RangeError: Maximum call stack size exceeded
. Interestingly, when the same structure is executed outside of the object, there are no complications.
/////////////// Enact the scene rendering ///////////////
this.render = function (){
renderer.render(scene,camera);
if(isControls == true) controls.update(clock.getDelta());
this.animate();
//console.log(true);
requestAnimationFrame(this.render());
}
/////////////// Adjust objects during animation ///////////////
this.animate = function (){
console.log("!");
}