Gating network behind compile flag
This commit is contained in:
@@ -1,24 +1,23 @@
|
||||
// Copyright (c) 2026 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
class TestPlane {
|
||||
class TestPlane extends Entity {
|
||||
constructor() {
|
||||
this.entity = new Entity();
|
||||
super();
|
||||
|
||||
this.position = this.entity.add(POSITION);
|
||||
this.position = this.add(POSITION);
|
||||
this.position.setLocalPosition(-10.0, 0.0, -10.0);
|
||||
this.position.setLocalScale(20.0, 1.0, 20.0);
|
||||
|
||||
this.physics = this.entity.add(PHYSICS);
|
||||
this.physics = this.add(PHYSICS);
|
||||
this.physics.setBodyType(PHYSICS_BODY_STATIC);
|
||||
this.physics.setShape(PHYSICS_SHAPE_PLANE, 0.0, 1.0, 0.0, 0.0);
|
||||
|
||||
this.renderable = this.entity.add(RENDERABLE);
|
||||
this.renderable = this.add(RENDERABLE);
|
||||
this.renderable.setMesh(0, MESH_PLANE);
|
||||
this.renderable.setColor(128, 128, 128, 255);
|
||||
}
|
||||
|
||||
dispose() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = TestPlane;
|
||||
|
||||
Reference in New Issue
Block a user