controls the speed of the image in the direction given (adjusts the velocity system behind the scenes)
speed
Examples
const A = $.makeCircleCollider(20,20,20);
A.fill = "#54d89f";
A.direction = 180;
A.speed = 10;
A.friction = 0;
const B = $.makeBoxCollider(50,20,20,20);
B.fill = "#333333";
B.direction = 180;
B.speed = 20;
B.friction = 0;
const C = $.makeCircleCollider(80,20,20);
C.fill = "rgba(160,54,68,1)";
C.direction = 180;
C.speed = 35;
C.friction = 0;
const D = $.makeBoxCollider(110,20,20,20);
D.fill = "#41382b";
D.direction = 180;
D.speed = 30;
D.friction = 0;
function update() {
$.drawColliders();
}