From 010c176708fbbb0b409ff6f9c528dccab4ac30e4 Mon Sep 17 00:00:00 2001 From: Hanusiak Piotr Date: Thu, 3 Feb 2022 10:13:17 +0100 Subject: [PATCH] applied proper offset for circle collider of Character --- front/src/Phaser/Entity/Character.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/Phaser/Entity/Character.ts b/front/src/Phaser/Entity/Character.ts index 4465a6b6..b54825a9 100644 --- a/front/src/Phaser/Entity/Character.ts +++ b/front/src/Phaser/Entity/Character.ts @@ -142,7 +142,7 @@ export abstract class Character extends Container implements OutlineableInterfac this.clickable = clickable; if (clickable) { this.setInteractive({ - hitArea: new Phaser.Geom.Circle(0, 0, interactiveRadius), + hitArea: new Phaser.Geom.Circle(8, 8, interactiveRadius), hitAreaCallback: Phaser.Geom.Circle.Contains, //eslint-disable-line @typescript-eslint/unbound-method useHandCursor: true, });