Gets/ets the current y(vertical) position of the Collider.
y
Examples
const example = $.makeCircleCollider(0,$.h/2,50);
function update() {
example.y += 1;
if(example.y > $.h) {
example.y = 0;
}
example.draw();
}Gets/ets the current y(vertical) position of the Collider.
const example = $.makeCircleCollider(0,$.h/2,50);
function update() {
example.y += 1;
if(example.y > $.h) {
example.y = 0;
}
example.draw();
}