]>
git.r.bdr.sh - rbdr/serpentity-lib/blob - components/euler_angle/index.js
1 import { Component
} from '@serpentity/serpentity';
4 * EulerAngle component, stores the value of an euler
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
11 export default class EulerAngle
extends Component
{
16 this.pitch
= this.pitch
|| 0;
17 this.yaw
= this.yaw
|| 0;
18 this.roll
= this.roll
|| 0;