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/Element.js

16 lines
272 B
JavaScript
Raw Normal View History

export class Element {
constructor() {
2022-11-22 10:40:13 +01:00
this.data = undefined;
}
/**
* Rotate the element
*/
rotate = () => {
2022-11-22 10:40:13 +01:00
if (this.data) {
this.data.rotation.x += 0.01;
this.data.rotation.y += 0.01;
}
};
}