x

Gets/Sets the current x(horizontal) position of the Collider.

Examples


const example = $.makeCircleCollider(0,$.h/2,50);
function update() {
    example.x += 1;
    if(example.x > $.w) {
    example.x = 0;
    }
    example.draw();
}