Skip to content

Bounding box#2563

Merged
Dunbaratu merged 11 commits intoKSP-KOS:developfrom
Dunbaratu:bounding_box
Jul 18, 2019
Merged

Bounding box#2563
Dunbaratu merged 11 commits intoKSP-KOS:developfrom
Dunbaratu:bounding_box

Conversation

@Dunbaratu
Copy link
Member

Exposes bounding box information from the part meshes to the kOS script.

Should allow you to detect altitude from the bottom of a landing gear part, for example, or see how big a ship is when docking so you can safely go around it.

@Dunbaratu Dunbaratu merged commit c728cd3 into KSP-KOS:develop Jul 18, 2019
@Dunbaratu
Copy link
Member Author

The commit #fb08141, attempting to reduce the load on the computer by only using 2 corners instead of all 8 to calculate the bounds was broken logic that squishes the box in some orientations.

I will be reverting that commit and re-pushing an update to this.

@Dunbaratu Dunbaratu mentioned this pull request Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant