]> git.r.bdr.sh - rbdr/serpentity-lib/blame - components/euler_angle/index.js
Add euler angle
[rbdr/serpentity-lib] / components / euler_angle / index.js
CommitLineData
0c7f0571
RBR
1import { 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 */
11export 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};