src/physics.js
/*
 * Adjust a body angle to the given heading.
 */
Adjust a body angle to the given heading.
Adjust a body angle to the given heading .
function adjustAngle(body, a, turnRate) {
	var limit = turnRate / param.Rate;
	var delta = deltaAngle(body.angle, a);
	var d = Math.max(-limit, Math.min(+limit, delta));
	body.angle += d;
}
function adjustAngle ( body , a , turnRate ) { var limit = turnRate / param . Rate ; var delta = deltaAngle ( body . angle , a ) ; var d = Math . max ( - limit , Math . min ( + limit , delta ) ) ; body . angle += d ; }
Adjust a body angle to the given heading.
Adjust a body angle to the given heading .