1234567891011121314151617181920 |
- import * as RE from 'rogue-engine';
- export default class RotationComponent extends RE.Component {
- @RE.props.num() rotationSpeed = -1
- awake() {
- }
- start() {
- }
- update() {
- this.object3d.rotateY(this.rotationSpeed / 1000)
- }
- }
- RE.registerComponent(RotationComponent);
-
|