aboutsummaryrefslogtreecommitdiff
path: root/game/preview/PrevPlayerSubScene.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-10 19:32:25 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-10 19:32:25 +0100
commitc17a1ac94186a2de6ad30e9228a031fb08434e52 (patch)
tree49ef4c95b4e9657cdb3b35cadae375a91a19313d /game/preview/PrevPlayerSubScene.cpp
parente0054137a49927dc619ca1a94ca543ae01713e3c (diff)
tiny adjustments for preview scene
Diffstat (limited to 'game/preview/PrevPlayerSubScene.cpp')
-rw-r--r--game/preview/PrevPlayerSubScene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/preview/PrevPlayerSubScene.cpp b/game/preview/PrevPlayerSubScene.cpp
index 4351deb..3f5a5d5 100644
--- a/game/preview/PrevPlayerSubScene.cpp
+++ b/game/preview/PrevPlayerSubScene.cpp
@@ -71,10 +71,10 @@ PrevPlayerSubScene::PrevPlayerSubScene(Scene & scn) {
}
);
player.add_component<Rigidbody>(Rigidbody::Data {
- .gravity_scale = 20,
+ .gravity_scale = 1,
.body_type = Rigidbody::BodyType::DYNAMIC,
.linear_velocity = vec2(100, 0),
- .collision_layers = {COLL_LAY_BOT_TOP},
+ .collision_layers = {COLL_LAY_BOT_TOP, 100},
.collision_layer = COLL_LAY_PLAYER,
});
player.add_component<BoxCollider>(vec2(50, 50));