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

Expose body suffixes for surface, water, and children. #2319

Open
Dunbaratu opened this issue Aug 13, 2018 · 0 comments
Open

Expose body suffixes for surface, water, and children. #2319

Dunbaratu opened this issue Aug 13, 2018 · 0 comments
Labels
enhancement Something new (not a bug fix) is being requested

Comments

@Dunbaratu
Copy link
Member

KSP's API has these bits of information about a Body that we aren't exposing to kOS:

Body.ocean - bool - True if the body has a liquid sphere at sea level. False if its dry and "sea level" is just a number.
Body.hasSolidSurface - bool - True if the body has any terrain polygons. False if it's all gas like Jool.
Body.orbitingChildren - List - the children of this body (i..e moons of a planet or planets of a star). Right now you can only walk the tree of bodies upward from child to parent via the :BODY suffix (i.e. ship:body:body is the body the body you orbit orbits). There's no way to walk the tree downward from parent to child. This suffix would provide that.

@Dunbaratu Dunbaratu added the enhancement Something new (not a bug fix) is being requested label Aug 13, 2018
evandisoft added a commit to evandisoft/KOS that referenced this issue Nov 12, 2018
Signed-off-by: Evan Dickinson <evan_dickinson@protonmail.com>
evandisoft added a commit to evandisoft/KOS that referenced this issue Nov 12, 2018
evandisoft added a commit to evandisoft/KOS that referenced this issue Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something new (not a bug fix) is being requested
Projects
None yet
Development

No branches or pull requests

1 participant