修复碰撞检测问题
This commit is contained in:
parent
14f81a4ddf
commit
c4febfc0bc
@ -42,7 +42,7 @@ void Obstacle::RecalcSelfCollider()
|
||||
} else {
|
||||
self_collider2_->_min = Vector2D(0.0f - door_state1->width() / 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){
|
||||
switch (meta->i->type()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user