]> git.r.bdr.sh - rbdr/sumo/blame - lib/components/max_velocity.js
Pixelate the text
[rbdr/sumo] / lib / components / max_velocity.js
CommitLineData
7ade6f8d
RBR
1import { Component } from '@serpentity/serpentity';
2
3/**
4 * Component that stores max velocity constraint
5 *
6 * @extends {external:Serpentity.Component}
7 * @class MaxVelocityComponent
8 * @param {object} config a configuration object to extend.
9 */
10export default class MaxVelocityComponent extends Component {
11 constructor(config) {
12
13 super(config);
14
15 /**
16 * The properthy that holds the max velocity
17 *
18 * @property {number} maxVelocity
19 * @instance
20 * @memberof MaxVelocityComponent
21 */
22 this.maxVelocity = this.maxVelocity || 20;
23 }
24};
25