aboutsummaryrefslogtreecommitdiff
path: root/lib/components/up.js
blob: 585b4b521c3b1d271371cccba77c5775d729ac60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { Component } from '@serpentity/serpentity';

/**
  * Stores an up vector. Intended for the camera in the scene.
  */
export default class Up extends Component {
  constructor(config) {

    super(config);

    this.x = this.x || 0;
    this.y = this.y || 1;
    this.z = this.z || 0;
  }
};