]> git.r.bdr.sh - rbdr/serpentity-lib/blob - components/velocity/index.js
2becf51d8e9d9a7270c75c6947276e1b7021a7e6
[rbdr/serpentity-lib] / components / velocity / index.js
1 import { Component } from '@serpentity/serpentity';
2
3 /*
4 * Velocity component, stores the components of a velocity vector
5 * Public members:
6 * -x <Number> // the x component of velocity vector
7 * -y <Number> // the y component of velocity vector
8 * -z <Number> // the z component of velocity vector
9 */
10 module export class Velocity 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 };