primesoftware 1 Report post Posted September 11, 2016 Hello all, I'm trying to programmatically create a cylinder using the following: var cylinder = BABYLON.MeshBuilder.CreateCylinder("wormhole", {diameter: 1, tessellation: 24}, this.resourceStore["GameScene"]); cylinder.position = BABYLON.Vector3(-0.56, 1.27, 1.235); and it is throwing a TypeError: e is undefined with the following trace: o</i.prototype.copyFrom() babylon-2.4.min.js:1 t</i.prototype.computeWorldMatrix() babylon-2.4.min.js:6 o</i.prototype._evaluateActiveMeshes() babylon-2.4.min.js:10 o</i.prototype._renderForCamera() babylon-2.4.min.js:11 o</i.prototype._processSubCameras() babylon-2.4.min.js:11 o</i.prototype.render() babylon-2.4.min.js:11 GameManager.prototype.initialize/</textTask.onSuccess</<() GameManager.js:191 bound () self-hosted c</o.prototype._renderLoop() babylon-2.4.min.js:4 bound () self-hosted Any ideas? Everything works fine (i.e. scene loads, textures show, materials work, controls work). I have noticed lately that my textures seem to disappear at a particular camera but the geometry is still there. Not sure if its related. Quote Share this post Link to post Share on other sites
smatt 12 Report post Posted September 11, 2016 (edited) Add a "new" before BABYLON.Vector3 Edit: working playground http://babylonjs-playground.com/#2GYHHR Edited September 11, 2016 by smatt Add working playground Quote Share this post Link to post Share on other sites
primesoftware 1 Report post Posted September 12, 2016 @smatt Ahhhh!!! I was coding late and on 5 hours of sleep. I'm dumb. Thanks!! Quote Share this post Link to post Share on other sites