Projectiles detonate on raycast collision with unit hitboxes

This commit is contained in:
devZoGok
2024-01-17 20:30:16 +02:00
parent 827589c823
commit a956e754bf
11 changed files with 151 additions and 255 deletions
+2
View File
@@ -6,11 +6,13 @@ namespace battleship{
ResourceDeposit::ResourceDeposit(Player *player, int id, Vector3 pos, Quaternion rot) : GameObject(GameObject::Type::RESOURCE_DEPOSIT, id, player, pos, rot){
initProperties();
initModel();
initHitbox();
placeAt(pos);
orientAt(rot);
}
ResourceDeposit::~ResourceDeposit(){
destroyHitbox();
destroyModel();
}
}