-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the difference between flag_destroyed and wreck? #78
Comments
Wreck is when model is crashing, exploding.... Destroying animations and physics are in progress. |
Thanks, When setting rewards, which symbols in def get_plane_state() should be used for the punishment of aircraft being hit by missiles and aircraft being completely destroyed? |
There is no direct information to determines if aircraft has been hit by missile or machinegun. If I correctly understood your need, I think you can set a reward using health_level derivative... Not 100% safe but without add a feature to the simulator, that's what i would do. |
Now, You can easily add a list of all objects that hit the aircraft, passing them by Machine.hit function. Just add the source of the hit, and store it in a List of the Machine. Then, in get_state function, add the list of all objects that hit the plane. |
Thank you for your patience in answering. Can you explain it in more detail? I couldn't find the hit function in the network_server,py. Also, The reward received seems to be a delayed reward since missiles require time to fly for a while. Would the delayed reward mislead the policies of airplanes? If so, how can it be alleviated? |
Here, We query whether the flag_hit_gun of each plane is True to determine if this plane shoot the enemy.
At last, We query whether the flag_hit_missile of the missiles launched by each plane is True to determine if this plane hit the enemy. Then, the plane is rewarded. |
What is the difference between flag_destroyed and wreck?
The text was updated successfully, but these errors were encountered: