Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float enemy_offset_x = 250;
- float enemy_offset_y = 50;
- float enemy_velocity_x = 0.707107;
- float enemy_velocity_y = 0.707107;
- float enemy_x = sqrt(pow(enemy_offset_x - (enemy_offset_x * pow(enemy_velocity_x, 2) + enemy_offset_y * pow(enemy_velocity_x, 2)), 2) + pow(enemy_offset_x - (enemy_offset_x * pow(enemy_velocity_y, 2) + enemy_offset_y * pow(enemy_velocity_y, 2)), 2));
- float enemy_y = sqrt(pow(enemy_offset_x * pow(enemy_velocity_x, 2) + enemy_offset_y * pow(enemy_velocity_x, 2), 2) + pow(enemy_offset_x * pow(enemy_velocity_y, 2) + enemy_offset_y * pow(enemy_velocity_y, 2), 2));
- std::cout << "X: " << enemy_x << ", Y: " << enemy_y << "\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement