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