From f2159a31a9fc43af51c1ac497f26e8e5abbfede2 Mon Sep 17 00:00:00 2001 From: Sara Date: Sun, 26 Nov 2023 13:15:07 +0100 Subject: [PATCH] feat: collision shape is for prop now initialized with physics entity and PHYSICS_LAYER_DEFAULT --- game/src/Prop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/src/Prop.c b/game/src/Prop.c index ae3bd44..c20c940 100644 --- a/game/src/Prop.c +++ b/game/src/Prop.c @@ -13,7 +13,7 @@ Prop* MakeProp(Sprite* sprite, Shape* shape) { .collisionShape = NULL }; self->rigidbody = rigidbody_make(Prop_as_Transformable(self)); - self->collisionShape = collider_new(self->rigidbody, shape, 0, 0x1); + self->collisionShape = collider_new(Prop_as_PhysicsEntity(self), shape, 0, PHYSICS_LAYER_DEFAULT); rigidbody_set_static(self->rigidbody, 1); sprite_set_origin(self->sprite, MakeVector(0.5f, 1.0f)); return self;