]>
Commit | Line | Data |
---|---|---|
582cea2a BB |
1 | import { Component } from '@serpentity/serpentity'; |
2 | ||
3 | /* | |
4 | * Force component, stores the components of a force vector | |
5 | * Public members: | |
6 | * -x <Number> // the x component of force vector | |
7 | * -y <Number> // the y component of force vector | |
8 | * -z <Number> // the z component of force vector | |
9 | */ | |
bc646ad0 | 10 | export default class Force extends Component { |
582cea2a BB |
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 | }; |