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