blob: 70bf343a050a47636e9b7ac2dcecec3d3919ffa2 (
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
|
import { Component } from '@serpentity/serpentity';
/**
* Component that stores max velocity constraint
*
* @extends {external:Serpentity.Component}
* @class MaxVelocityComponent
* @param {object} config a configuration object to extend.
*/
export default class MaxVelocityComponent extends Component {
constructor(config) {
super(config);
/**
* The properthy that holds the max velocity
*
* @property {number} maxVelocity
* @instance
* @memberof MaxVelocityComponent
*/
this.maxVelocity = this.maxVelocity || 20;
}
};
|