autocontrol
This commit is contained in:
@@ -85,6 +85,7 @@ void Aliens::update()
|
||||
}
|
||||
if (curMiss < 0)
|
||||
{
|
||||
// TODO: smooth rotate (how???)
|
||||
arctg = std::atan2((*i).pos.x() - (*i).path.at((*i).pathIndex).x(),(*i).pos.y() - (*i).path.at((*i).pathIndex).y());
|
||||
//if (tmpdy < 0) arctg=arctg+M_PI;
|
||||
angl = 180.0f*(-arctg)/M_PI;
|
||||
|
||||
Reference in New Issue
Block a user