С++
-
Автор темы
- #1
Код:
C++:
if (leftdamage > rightdamage) yaw = at_target_yaw - 90.f;
else if (leftdamage < rightdamage) yaw = at_target_yaw + 90.f;
else if (leftdamage < backdamage && rightdamage < backdamage) yaw = at_target_yaw + 180.f;