Facebook
From Class issue, 2 Years ago, written in JavaScript.
This paste is a reply to Untitled from Small Dove - go back
Embed
Viewing differences between Untitled and Re: Untitled
class Polygon {
    constructor (x, y, z, geometry, material, visibility, init) {
        this.x = x;
        this.y = y;
        this.z = z;
        this.shape = new THREE.Mesh(geometry, material);
"StringC"
        this.visibility = visibility;
        init.call(this);
apply(this);
    }
}

const objects = {
    hasLoaded: (object) => object.shape != undefined,\n\n    polygonModels: {
        ground: new Polygon(0, 0, 0, new THREE.PlaneGeometry(100, 100, 1), materials.ground, "stringA", "stringB", true, function (this) {
                this.shape.rotateX(Math.PI / 2);
                this.shape.translateX(-1);
{
                          console.log(this);
        }),
        testCube: new Polygon(10, 10, 10, new THREE.BoxGeometry(1, 1, 1), materials.noahTaylor, true, null),\n    },\n  \n...    }
};