mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
missiles can now be attacked
This commit is contained in:
+4
-1
@@ -7,7 +7,10 @@ namespace battleship{
|
||||
Missile::Missile(Unit *un, int id, Vector3 tp, Vector3 pos, Quaternion rot) :
|
||||
Projectile(un, id, pos, rot),
|
||||
Destructable(un->getPlayer(), id, GameObject::Type::PROJECTILE, pos, rot),
|
||||
targetPos(tp){}
|
||||
targetPos(tp)
|
||||
{
|
||||
Destructable::initProperties();
|
||||
}
|
||||
|
||||
void Missile::update(){
|
||||
Vector3 targDir = (targetPos - Projectile::pos).norm();
|
||||
|
||||
Reference in New Issue
Block a user