Author Topic: What is a path for turrets?  (Read 198 times)

0 Members and 1 Guest are viewing this topic.

Offline weichx

  • 21
What is a path for turrets?
I'm building an importer for Unity to get POF models loaded without having to through the .dae format first. Everything is working great with the model import but I don't fully understand some of the 'extra' information in the POF file, particularly what paths are for turrets and how I should interpret them. My only thought right now is that it used for targeting. Paths for docking bays make sense but even in that case I'm not sure why a path point has a radius associated with it. Can anyone enlighten me?

 

Offline Axem

  • Administrator
  • 211
Re: What is a path for turrets?
There may be a more technical explanation but the basics are like this:

Paths for turrets (and all subsystems) are attack paths for fighters to follow when they get orders to attack subsystems.

Path points have a radius to help guide ships to the path without needing to be exactly on the point. Basically once a ship gets within a path point's radius, its told to start moving to the next one in the path. So the path farthest out gets the largest radius, and they get smaller as they get closer.
« Last Edit: December 30, 2017, 03:51:53 pm by Axem »

 

Offline The E

  • He's Ebeneezer Goode
  • Global Moderator
  • 213
  • Nothing personal, just tech support.
    • Skype
    • Steam
    • Twitter
Re: What is a path for turrets?
What axem says is completely correct.
**** every cause that ends in murder and children crying. ― Iain Banks
Join the fun at the HLP IRC channel. Get the latest spam and gossip as long as it's fresh!

 

Offline weichx

  • 21
Re: What is a path for turrets?
Ok that makes sense, thanks!

Now a follow up question: I'm trying to figure out how turrets know what they can target. For single turrets there must be a field of view setting based on their normal somewhere right? And the same for Multi part turrets + some rotation constraint probably. Where do I find this? I see a few flags like "check hull" can optionally be defined but I can't seem to find the "what can I hit" code anywhere. Anybody know where to look?