How to fix hitbox

i can manually change the hitbox

scene.player = scene.physics.add.sprite(30, 100, 'player').setSize(22, 33).setOffset(18, 23)

but there is a property

setInteractive(this.input.makePixelPerfect()

which I have for some reason does not work. Tell me how to do it right

The input and physics are separate.

the only option is to manually add setSize and setOffset?

1 Like