blob: f0e460ccda510ec27c601b99970732792bc8b189 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
import { Component } from '@serpentity/serpentity';
/**
* Component that stores a force vector
*
* @extends {external:Serpentity.Component}
* @class ForceComponent
* @param {object} config a configuration object to extend.
*/
export default class ForceComponent extends Component {
constructor(config) {
super(config);
/**
* The properthy that holds the x component of the vector
*
* @property {number} x
* @instance
* @memberof AngleComponent
*/
this.x = this.x || 0;
/**
* The properthy that holds the y component of the vector
*
* @property {number} y
* @instance
* @memberof AngleComponent
*/
this.y = this.y || 0;
/**
* The properthy that holds the z component of the vector
*
* @property {number} z
* @instance
* @memberof AngleComponent
*/
this.z = this.z || 0;
}
};
|