src/serialize/DynamicObject.js
/**
    * accelerate along the direction that the object is facing
    * @param {Number} acceleration - the acceleration
    * @return {DynamicObject} return this object
    */
accelerate along the direction that the object is facing
@param {Number} acceleration - the acceleration
@return {DynamicObject} return this object
accelerate along the direction that the object is facing @param { Number } acceleration - the acceleration @return { DynamicObject } return this object
accelerate(acceleration) {
        let rad = this.angle * (Math.PI / 180);
        let dv = new TwoVector(Math.cos(rad), Math.sin(rad));
        dv.multiplyScalar(acceleration);
        this.velocity.add(dv);
        return this;
    }
accelerate ( acceleration ) { let rad = this . angle * ( Math . PI / 180 ) ; let dv = new TwoVector ( Math . cos ( rad ) , Math . sin ( rad ) ) ; dv . multiplyScalar ( acceleration ) ; this . velocity . add ( dv ) ; return this ; }
accelerate along the direction that the object is facing
 @param {Number} acceleration - the acceleration
 @return {DynamicObject} return this object
accelerate along the direction that the object is facing @param { Number } acceleration - the acceleration @return { DynamicObject } return this object