Skip to content
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

Helicopter rotor collides at twice the rotor diameter #39474

Closed
stiansel opened this issue Apr 11, 2020 · 0 comments · Fixed by #40313
Closed

Helicopter rotor collides at twice the rotor diameter #39474

stiansel opened this issue Apr 11, 2020 · 0 comments · Fixed by #40313
Labels
<Bug> This needs to be fixed Vehicles Vehicles, parts, mechanics & interactions

Comments

@stiansel
Copy link

Describe the bug

Helicopter rotor collision code appears to calculate collisions at twice the actual rotor diameter. This appears to be caused by using the diameter as radius:

for( const tripoint &rotor_point : g->m.points_in_radius( dsp, info.rotor_diameter() ) ) {

Steps To Reproduce

Came across this while flying for the first time and attempting to land a medevac helicopter at the military helipad map location. This helicopter has "small helicopter rotors" with a diameter of 8 according to the current rotor.json file. If I land with any object within (roughly) the purple circle the helicopter will crash. See attached screenshot.

This location has a two story building which I tested approaching at the 2nd floor. Getting any closer than 8(+1) squares from the rotor center caused the helicopter to crash with the wall. Note how the purple circle extends past the tailboom of the helicopter which appears to be a rare design choice in real life due to interfering with the (imaginary) tail rotor. As such I consider this a bug.

Expected behavior

Expect diameter/radius mismatch to be corrected and helicopter rotor diameter to fit within radius of tailboom on default heli designs. Would be helpful with an indicator of some kind to tell where the rotor is as I'm certain the player character has at least some idea from their position in the craft.

Another related issue: low objects like fuelpumps appear to cause rotor collisions which may not be intended.

Screenshots

helicopter_rotor_diameter

Versions and configuration

  • OS: Windows 7
  • Game Version: 0.E-468-g9e02bc1
  • Graphics version: Tiles
  • Ingame language: English
  • Mods loaded: dda, no_npc_food, aftershock, crt_expansion, magiclysm, alt_map_key, No_Fungi, fuji_mpp, StatsThroughSkills

PS: great job on the vehicle crashes, they're really quite spectacular. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants