blob: 2becf51d8e9d9a7270c75c6947276e1b7021a7e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { Component } from '@serpentity/serpentity';
/*
* Velocity component, stores the components of a velocity vector
* Public members:
* -x <Number> // the x component of velocity vector
* -y <Number> // the y component of velocity vector
* -z <Number> // the z component of velocity vector
*/
module export class Velocity extends Component {
constructor(config) {
super(config)
this.x = this.x || 0;
this.y = this.y || 0;
this.z = this.z || 0;
}
};
|