Skip to content

--[BE] - Duplicate existing rigid or articulated object#2418

Merged
jturner65 merged 4 commits intomainfrom
BE_DuplicateExistingObject
Jun 27, 2024
Merged

--[BE] - Duplicate existing rigid or articulated object#2418
jturner65 merged 4 commits intomainfrom
BE_DuplicateExistingObject

Conversation

@jturner65
Copy link
Copy Markdown
Contributor

Motivation and Context

This function enables the easy and accurate duplication of existing rigid and articulated objects. If an object has been instantiated by an scene object/ao instance attributes, that object's state will be impacted by both its creation template and the instance attributes, which can be arcane. Instead of attempting to duplicate this process externally, the instance attributes and config template are accessed internally for the existing object and used to recreate another just like it.

How Has This Been Tested

Locally existing c++ and python tests pass. Tests to be added to verify duplication process.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@jturner65 jturner65 requested a review from aclegg3 June 27, 2024 15:54
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jun 27, 2024
Copy link
Copy Markdown
Contributor

@aclegg3 aclegg3 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread src/esp/physics/RigidObject.h Outdated
void setIsCOMCorrected(bool _isCOMCorrected) {
isCOMCorrected_ = _isCOMCorrected;
}
bool getIsCOMCorreected() const { return isCOMCorrected_; }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
bool getIsCOMCorreected() const { return isCOMCorrected_; }
bool getIsCOMCorrected() const { return isCOMCorrected_; }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Jeeze my keyboard.

@jturner65 jturner65 force-pushed the BE_DuplicateExistingObject branch from ce11be3 to c05fe8e Compare June 27, 2024 16:27
@jturner65 jturner65 merged commit 4f2f9ff into main Jun 27, 2024
@jturner65 jturner65 deleted the BE_DuplicateExistingObject branch June 27, 2024 17:46
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.

3 participants