Adjust camera base height on crate jumping
parent
72235f7522
commit
21dab8b9a8
|
@ -1675,6 +1675,10 @@ void hitbox_update_system(Scene_t* scene)
|
||||||
p_cjump->short_hop = false;
|
p_cjump->short_hop = false;
|
||||||
p_cjump->jumped = true;
|
p_cjump->jumped = true;
|
||||||
}
|
}
|
||||||
|
if (p_ent->m_tag == PLAYER_ENT_TAG)
|
||||||
|
{
|
||||||
|
data->camera.base_y = p_ctransform->position.y;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (p_ctransform->position.y >= p_other_ct->position.y + p_other_bbox->size.y)
|
else if (p_ctransform->position.y >= p_other_ct->position.y + p_other_bbox->size.y)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue