修复碰撞检测问题

This commit is contained in:
aozhiwei 2019-06-03 15:36:57 +08:00
parent 14f81a4ddf
commit c4febfc0bc

View File

@ -42,7 +42,7 @@ void Obstacle::RecalcSelfCollider()
} else { } else {
self_collider2_->_min = Vector2D(0.0f - door_state1->width() / 2.0f, self_collider2_->_min = Vector2D(0.0f - door_state1->width() / 2.0f,
0.0f - door_state1->height() / 2.0f); 0.0f - door_state1->height() / 2.0f);
self_collider2_->_max = Vector2D(door_state1->width(), door_state1->height()); self_collider2_->_max = Vector2D(door_state1->width() / 2.0f, door_state1->height() / 2.0f);
} }
} else if (meta->i->attack_type() != 2){ } else if (meta->i->attack_type() != 2){
switch (meta->i->type()) { switch (meta->i->type()) {