@tdurtschi/bug
Version:
Bug is a simulation that models a weevil walking around in an HTML canvas.
9 lines • 318 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.walk = void 0;
exports.walk = function (bug) {
var direction = bug.direction, speed = bug.speed, pos = bug.pos;
pos.addScalarX(direction.x * speed);
pos.addScalarY(direction.y * speed);
};
//# sourceMappingURL=walk.js.map