blob: a45df93d08ecc3c18b424e23fb0a0839bd4aba3a (
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';
/*
* Force component, stores the components of a force vector
* Public members:
* -x <Number> // the x component of force vector
* -y <Number> // the y component of force vector
* -z <Number> // the z component of force vector
*/
export default class Force extends Component {
constructor(config) {
super(config)
this.x = this.x || 0;
this.y = this.y || 0;
this.z = this.z || 0;
}
};
|