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

Cleanup physics things #188

Merged
merged 1 commit into from
Sep 4, 2019
Merged

Cleanup physics things #188

merged 1 commit into from
Sep 4, 2019

Conversation

erikwijmans
Copy link
Contributor

Motivation and Context

  • Use configure.h introduced in Use configure.h #143.
  • Fix a segfault I found while testing the bullet build.
  • Add a --with-bullet alias to match the other --with-*.

How Has This Been Tested

Locally

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 4, 2019
@erikwijmans erikwijmans merged commit c10e686 into master Sep 4, 2019
@erikwijmans erikwijmans deleted the physics-cleanup branch September 4, 2019 20:46
@@ -61,8 +61,11 @@ class Viewer : public Magnum::Platform::Application {
const Magnum::Vector2i& position);

assets::ResourceManager resourceManager_;
std::shared_ptr<physics::PhysicsManager> physicsManager_;
// SceneManager must be before physicsManager_ as the physicsManager_
// assumes that it "owns" things owned by the scene manager
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds like double ownership. Did you mean expect instances already initiated in SceneManager?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. It's kinda double ownership. The physics manager's logic is simpler if it assumes it owns the magnum scene nodes it manipulates. This is a fine thing to assume as long as the scene graph those nodes are in has a longer lifetime than the physics manager.

Ram81 pushed a commit to Ram81/habitat-web-sim that referenced this pull request Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants