Skip to content

Do not ignore engines #1236

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

Merged
merged 2 commits into from
Mar 9, 2017
Merged

Conversation

eggrobin
Copy link
Member

@eggrobin eggrobin commented Mar 9, 2017

Engines are now taken into account correctly, and conservation of momentum is otherwise enforced. Stage separation appears to work, however it also seems to jettison the camera for a while. This needs to be looked into.

// union-find for pile up construction. This must be called after the calls
// to |IncrementPartIntrinsicForce|, and before the calls to
// |ReportCollision|.
virtual void BeginReportingCollisions();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name is a bit of a misnomer, it doesn't "begin" anything. How about PrepareToReportCollisions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -492,6 +487,22 @@ void Plugin::IncrementPartIntrinsicForce(PartId const part_id,
vessel->part(part_id)->increment_intrinsic_force(WorldToBarycentric()(force));
}

void Plugin::BeginReportingCollisions() {
for (not_null<Vessel*>vessel:loaded_vessels_) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bad formatting.

@pleroy pleroy added the LGTM label Mar 9, 2017
@pleroy pleroy merged commit 649baa1 into mockingbirdnest:Cardano Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants