mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
Projectiles detonate on raycast collision with unit hitboxes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user