This commit is contained in:
aozhiwei 2023-01-03 19:30:08 +08:00
parent 9e2ca60298
commit ea4b4092ca

View File

@ -732,10 +732,10 @@ void Bullet::GetHitThings(BulletCheckResult& result)
sender.Get()->team_id == ob->GetTeamId(room)) { sender.Get()->team_id == ob->GetTeamId(room)) {
bool ret = Collision::Check2dRotationRectangle bool ret = Collision::Check2dRotationRectangle
(GetPos().x, (GetPos().x,
GetPos().y, GetPos().z,
gun_meta->bullet_rad(), gun_meta->bullet_rad(),
ob->GetPos().x, ob->GetPos().x,
ob->GetPos().y, ob->GetPos().z,
ob->meta->width(), ob->meta->width(),
ob->meta->height(), ob->meta->height(),
ob->GetRotate() * 180.0f ob->GetRotate() * 180.0f