blob: d1323a39ad4dbc7668eb0a23383826428bdd946a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { Component } from '@serpentity/serpentity';
/*
* EulerAngle component, stores the value of an euler
* angle.
* Public members:
* -pitch <Number> // the rotation on the x axis
* -yaw <Number> // the rotation on the y axis
* -roll <Number> // the rotation on the z axis
*/
export default class EulerAngle extends Component {
constructor(config) {
super(config)
this.pitch = this.pitch || 0;
this.yaw = this.yaw || 0;
this.roll = this.roll || 0;
}
};
|