feat: attacks while in the air will now place a hurtbox, in the air

This commit is contained in:
Sara 2024-01-16 20:15:35 +01:00
parent f30902e8c9
commit 28ab75bf8d

View file

@ -68,7 +68,7 @@ void PlayerHurtbox(Player* self, DamageEventData damage, Vector hitbox_size, Vec
.owner = Player_as_BehaviourEntity(self), .owner = Player_as_BehaviourEntity(self),
.damage = damage, .damage = damage,
.size = hitbox_size, .size = hitbox_size,
.offset = offset, .offset = vaddf(offset, MakeVector(0.f, self->height)),
.depth_extent = 0.15f, .depth_extent = 0.15f,
}; };
HurtboxCast(&box, self->facing); HurtboxCast(&box, self->facing);