]> git.r.bdr.sh - rbdr/serpentity-lib/blob - components/acceleration/index.js
ffc5cb65ebfad6e97880fc6c11ea28a7ae2290f6
[rbdr/serpentity-lib] / components / acceleration / index.js
1 import { Component } from '@serpentity/serpentity';
2
3 /*
4 * Acceleration component, stores the components of a acceleration vector
5 * Public members:
6 * -x <Number> // the x component of acceleration vector
7 * -y <Number> // the y component of acceleration vector
8 * -z <Number> // the z component of acceleration vector
9 */
10 export default class Acceleration extends Component {
11 constructor(config) {
12
13 super(config)
14
15 this.x = this.x || 0;
16 this.y = this.y || 0;
17 this.z = this.z || 0;
18 }
19 };