]>
Commit | Line | Data |
---|---|---|
1 | import { Component } from '@serpentity/serpentity'; | |
2 | ||
3 | /** | |
4 | * Stores an up vector. Intended for the camera in the scene. | |
5 | */ | |
6 | export default class Up extends Component { | |
7 | constructor(config) { | |
8 | ||
9 | super(config); | |
10 | ||
11 | this.x = this.x || 0; | |
12 | this.y = this.y || 1; | |
13 | this.z = this.z || 0; | |
14 | } | |
15 | }; |