Hello,
I'm tryng to create an object wich holds mine ground in a scene, I'm using this code but it doesn't works, in console I receive a "n is undefined" message.
But with the vector creation, for example, there's no problems....
var terreno = { noiseTexture : "media/noise2.jpg", distortAmount : 10, offset : -20, xmin : -200, zmin : -200, xmax : 200, zmax : 200, precision : { "w" : 80, "h" : 80 }, subdivisions : { 'h' : 1, 'w' : 1 }, // Create the Tiled Ground create : new function(name, scene) { //"Tiled Ground" this.scene = scene; this.name = name; this.v = new BABYLON.Vector3(1, 10, 0); this.tiledGround = new BABYLON.Mesh.CreateTiledGround(name, this.xmin, this.zmin, this.xmax, this.zmax, this.subdivisions, this.precision, scene); } };