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

Adding Rigidbody MovementType to ObjectManipulator #526

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

whebertML
Copy link
Contributor

@whebertML whebertML commented Oct 20, 2023

This adds XRI's XRBaseInteractable.MovementType to ObjectManipulator so devs can specify the movement type of the rigid body during manipulation.

Currently the behavior always forces non-kinematic "Velocity Tracking" when a rigid body is attached, setting velocity and angular velocity to move the rigid body. This would allow the dev to specify other types of movement, like kinematic, as is provided in XRI. This also observes the XRBaseInteractor.selectedInteractableMovementTypeOverride when an interactor overrides the movement type.

Resolves: #532

Related to being more compatible with XRI #67

@whebertML whebertML added Type: Feature Request A request for a new feature that can be included with the next minor version release. Package: Spatial Manipulation The Project spatial manipulation package is impacted by this issue. labels Oct 20, 2023
@whebertML whebertML self-assigned this Oct 20, 2023
Copy link
Contributor

@AMollis AMollis left a comment

Choose a reason for hiding this comment

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

I like the change. Just some minor requests

@AMollis AMollis requested a review from keveleigh November 9, 2023 17:43
@whebertML
Copy link
Contributor Author

Thanks for the review @AMollis! Have a couple of fires internally, but will update and respond soon as I can.

Copy link
Contributor

@AMollis AMollis left a comment

Choose a reason for hiding this comment

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

Thanks for the updates. Small tooltip request

* Added XRBaseInteractable.MovementType to ObjectManipulator so devs
can specify the movement type of the rigid body during manipulation.
* Observes XRBaseInteractor.selectedInteractableMovementTypeOverride
@whebertML whebertML merged commit e4a8e93 into MixedRealityToolkit:main Nov 14, 2023
4 checks passed
@whebertML whebertML deleted the movementType branch May 8, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: Spatial Manipulation The Project spatial manipulation package is impacted by this issue. Type: Feature Request A request for a new feature that can be included with the next minor version release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Allow developers to set the Rigidbody movement type on ObjectManipulator
2 participants