-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feat(enhancement): Departure angle #8102
Conversation
Gonna need some more explanation of what the children mean/do.
I'm not sure anything outside the range [0, 180] makes sense. Unless the angle actually corresponds to the size of the allowed arc, and not the difference between the current position vector and the target direction.
Suggests it is the latter, though. |
hmm, thought it would be obvious, one specifies when using hyperdrive/scramdrive the other one when using jump drive
It is the difference |
Also, only angles from 0 to 180 make sense yes, everything else gets handled the same, while negative angles make it impossible to jump out of the system. |
Is this PR related to endless-sky/rfcs#1 ? |
I did not even know this exists, but now that you point on it, should I follow the proposed syntax? |
Providing review-comments on the RFC (on why another syntax is better) is also an option. |
I left a review comment on the rfc |
Feature Details
Adds a definable "departure angle" per system. This angle specifies the maximum offset the ship can have from the direction to the destination system
UI Screenshots
Screen.Recording.2023-01-11.at.4.06.51.PM.mov
Usage Examples
you can define a different angle for jump drives and hyperdrives using the link/jump argument
angles in degrees, meaning from 0> to 180
an angle of zero means, that there is no departure angle
Testing Done
see screen recording
Performance Impact
Some extra calculations when jumping, should not be too much
Note
This will be especially useful for ringworlds departure, where the AI navigates you out of the ringworld, but you still jump through it 😆