import { Component } from '@serpentity/serpentity'; /* * Velocity component, stores the components of a velocity vector * Public members: * -x // the x component of velocity vector * -y // the y component of velocity vector * -z // the z component of velocity vector */ export default class Velocity extends Component { constructor(config) { super(config) this.x = this.x || 0; this.y = this.y || 0; this.z = this.z || 0; } };