summaryrefslogtreecommitdiff
path: root/sim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sim.cpp')
-rw-r--r--sim.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/sim.cpp b/sim.cpp
index 49fc9d9..7add4e9 100644
--- a/sim.cpp
+++ b/sim.cpp
@@ -247,7 +247,12 @@ static void platform_make_body(State *state, Platform *platform) {
b2PolygonShape shape;
shape.SetAsBox(half_size, state->platform_thickness);
- body->CreateFixture(&shape, 0.0f);
+
+ b2FixtureDef fixture;
+ fixture.shape = &shape;
+ fixture.friction = 0.8f;
+
+ body->CreateFixture(&fixture);
if (platform->moves) {
float speed = platform->move_speed;
v2 p1 = platform->move_p1, p2 = platform->move_p2;