修复石头吸收子弹问题
This commit is contained in:
parent
429eeac857
commit
70156f3dc3
@ -53,6 +53,9 @@ bool Entity::TestCollision(Entity* b)
|
|||||||
|
|
||||||
bool Entity::TestCollision(ColliderComponent* b)
|
bool Entity::TestCollision(ColliderComponent* b)
|
||||||
{
|
{
|
||||||
|
if (b->owner->dead) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
for (auto& a_collider : colliders) {
|
for (auto& a_collider : colliders) {
|
||||||
if (a_collider->Intersect(b)) {
|
if (a_collider->Intersect(b)) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user