Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: 1 [2]

Author Topic: custom shield shapes  (Read 5291 times)

Wyvern

  • Admiral
  • *****
  • Posts: 3803
    • View Profile
Re: custom shield shapes
« Reply #15 on: January 23, 2013, 09:45:40 AM »

There are only a couple of vanilla ships that have this issue - might it be worth calculating a simple rectangular bounding box and using that as a secondary range check once shields are down?  While I can imagine modded ships that might not be overly helped by such (something caltrop-shaped comes to mind), it ought to be adequate for ships like the Conquest, Apogee, or Brawler.

Edit: It ought to even be possible to compare the bounding box to the bounding circle, and opt to not use the box unless it's sufficiently smaller - most ships don't need a bounding box at all.
« Last Edit: January 23, 2013, 09:48:35 AM by Wyvern »
Logged
Wyvern is 100% correct about the math.
Pages: 1 [2]