Skip to content

Allow Variable Bounding Box Handle Sizes - #598

Merged
marlenaklein-msft merged 2 commits into
MixedRealityToolkit:mainfrom
marlenaklein-msft:BoundsHandleSize
Jan 2, 2024
Merged

Allow Variable Bounding Box Handle Sizes#598
marlenaklein-msft merged 2 commits into
MixedRealityToolkit:mainfrom
marlenaklein-msft:BoundsHandleSize

Conversation

@marlenaklein-msft

@marlenaklein-msft marlenaklein-msft commented Jan 2, 2024

Copy link
Copy Markdown
Contributor

Currently, all BoundsHandleInteractables are set to a global scale of 1x1x1 at runtime (and may then scale with the bounding box if MaintainGlobalSize is unselected). The initial scale of BoundsHandleInteractable is never taken into account when scaling the handles. This change sets the global scale to the max(x,y,z) of the initial BoundsHandleInteractable scale, instead of 1, so a user may now change the size of the handles in the prefab in order to make bounding boxes with larger or smaller handles. PR also makes changes to the BoundsControlRuntimeExample scene to give an example of this.

image

[3x3x3 Handles Scaled Prefab from Sample Scene]

Addresses #572

Spatial Manipulation package version number has already been bumped since last release, so no update is needed.

@marlenaklein-msft
marlenaklein-msft requested review from a team, AMollis and shaynie as code owners January 2, 2024 17:04
@marlenaklein-msft marlenaklein-msft changed the title Allow Variable Bounding Box Handle Scales Jan 2, 2024

@AMollis AMollis left a comment

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.

One minor name change request. Also can you please attach a screen shot of the new prefab you've added?

Thank you

@AMollis
AMollis requested a review from a team January 2, 2024 17:43
@AMollis

AMollis commented Jan 2, 2024

Copy link
Copy Markdown
Contributor

@marlenaklein-msft , did you also check if the version numbers need updating? Can you please add a comment to the PR description stating you've verified the package versions are correct? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants