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; } }