diff --git a/src/game-lib-shape.js b/src/game-lib-shape.js index 7494c3b..1734411 100644 --- a/src/game-lib-shape.js +++ b/src/game-lib-shape.js @@ -99,6 +99,7 @@ GameLib.D3.Shape.SHAPE_TYPE_TRIMESH = 3; GameLib.D3.Shape.SHAPE_TYPE_CYLINDER = 4; GameLib.D3.Shape.SHAPE_TYPE_HEIGHT_MAP = 5; GameLib.D3.Shape.SHAPE_TYPE_CONVEX_HULL = 6; +GameLib.D3.Shape.SHAPE_TYPE_PLANE = 7; /** * @@ -144,6 +145,8 @@ GameLib.D3.Shape.prototype.createInstance = function() { this.vertices, this.indices ); + } else if(this.shapeType == GameLib.D3.Shape.SHAPE_TYPE_PLANE) { + instance = new this.engine.instance.Plane(); } else { console.warn('Shape type not implemented: ' + this.shapeType); throw new Error('Shape type not implemented: ' + this.shapeType);