diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-12 10:55:17 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-12 10:55:17 +0100 |
commit | 6879f036aebe8f279411fa30f2d7ae1e0614308c (patch) | |
tree | 4a09cc343c454fa9c5766ada419ced06d1472c40 | |
parent | 6e45c7c1f4c40fc724e0727342d23417c4cabfa0 (diff) |
Bug fix: Set same box collider as Game
-rw-r--r-- | game/preview/NpcSubScene.cpp | 2 | ||||
-rw-r--r-- | game/preview/PrevPlayerSubScene.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/game/preview/NpcSubScene.cpp b/game/preview/NpcSubScene.cpp index 9fddb78..5ededb6 100644 --- a/game/preview/NpcSubScene.cpp +++ b/game/preview/NpcSubScene.cpp @@ -49,7 +49,7 @@ NpcSubScene::NpcSubScene(Scene & scn) { .looping = true, } ); - npc.add_component<BoxCollider>(vec2 {50, 50}); + npc.add_component<BoxCollider>(vec2 {40, 50}); npc.add_component<Rigidbody>(Rigidbody::Data { .mass = 10, diff --git a/game/preview/PrevPlayerSubScene.cpp b/game/preview/PrevPlayerSubScene.cpp index 831167a..2403551 100644 --- a/game/preview/PrevPlayerSubScene.cpp +++ b/game/preview/PrevPlayerSubScene.cpp @@ -76,7 +76,7 @@ PrevPlayerSubScene::PrevPlayerSubScene(Scene & scn) { .collision_layers = {COLL_LAY_BOT_TOP, 100}, .collision_layer = COLL_LAY_PLAYER, }); - player.add_component<BoxCollider>(vec2(50, 50)); + player.add_component<BoxCollider>(vec2(40, 50)); player.add_component<BehaviorScript>().set_script<PrevPlayerScript>(); AudioSource & audio = player.add_component<AudioSource>(Asset {"asset/music/level.ogg"}); |