This repository has been archived on 2022-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
GeometryDash3D/js/Cube.js

13 lines
275 B
JavaScript
Raw Normal View History

2022-11-22 10:40:13 +01:00
import { Element } from "./Element.js";
export class Cube extends Element {
constructor() {
super();
this.data = new THREE.Mesh(
new THREE.BoxGeometry(1, 1, 1),
new THREE.MeshBasicMaterial({ color: 0x00ff00 })
);
}
}