Fractal Softworks Forum

Please login or register.

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

Author Topic: carrier graphics glitch  (Read 6250 times)

PCCL

  • Admiral
  • *****
  • Posts: 2016
  • still gunnyfreak
    • View Profile
Re: carrier graphics glitch
« Reply #15 on: May 13, 2012, 02:35:17 AM »

Good luck with troubleshooting this perplexing shield problem you've been having.

it was solved many posts ago....
Logged
mmm.... tartiflette

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24123
    • View Profile
Re: carrier graphics glitch
« Reply #16 on: May 13, 2012, 10:21:27 AM »

question: is there a point in making the collision radius roughly the size of the sprite? would it slow down the game otherwise or something?

Yes - the AI uses it for certain things, and the first pass of the collision detection algorithm does, too - so that it doesn't have to do detailed, more computationally expensive checks where it's clearly not needed.

You want the collision radius to be the smallest possible, where it still fully contains the collision bounds and the shield. Note that this isn't the same as having it be equal to the shield radius, because the shield center and the rotational center of the ship (which is also the collision bounds center) can be different.

If it's too small, you'll miss some collisions. If it's too big, you'll bog the game down and confuse the AI.
Logged

Archduke Astro

  • Captain
  • ****
  • Posts: 456
  • 99 AU from anywhere
    • View Profile
Re: carrier graphics glitch
« Reply #17 on: May 13, 2012, 12:21:02 PM »

You want the collision radius to be the smallest possible, where it still fully contains the collision bounds and the shield. Note that this isn't the same as having it be equal to the shield radius, because the shield center and the rotational center of the ship (which is also the collision bounds center) can be different.

Should they be kept the same? Personally, I'd be reluctant to have them differ.
Logged
We thought our last moment had come
when we got a message up the voice pipe
saying that 'A' Turret magazine was on fire.....

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24123
    • View Profile
Re: carrier graphics glitch
« Reply #18 on: May 13, 2012, 12:24:33 PM »

Should they be kept the same? Personally, I'd be reluctant to have them differ.

Oftentimes, given the way a ship looks, it makes more sense to have it rotate around one point (which looks like it'd be the center of mass), while its shields need to be centered elsewhere to achieve coverage around the borders of the sprite that doesn't look off-center. They shouldn't be wildly different, but certain ships just need it - for most vanilla ships, actually, they're at least a little different.
Logged

Archduke Astro

  • Captain
  • ****
  • Posts: 456
  • 99 AU from anywhere
    • View Profile
Re: carrier graphics glitch
« Reply #19 on: May 13, 2012, 12:26:21 PM »

Thank you for sharing your insight - it's appreciated. :)
Logged
We thought our last moment had come
when we got a message up the voice pipe
saying that 'A' Turret magazine was on fire.....

PCCL

  • Admiral
  • *****
  • Posts: 2016
  • still gunnyfreak
    • View Profile
Re: carrier graphics glitch
« Reply #20 on: May 13, 2012, 12:42:22 PM »

my ship on the OP had them different....

I did end up expanding them but the centre is still the disk as opposed to the middle of the sprite...
Logged
mmm.... tartiflette
Pages: 1 [2]