Skip to content

Update TetheredPlacement.cs to use local pose#10566

Merged
keveleigh merged 2 commits into
microsoft:prerelease/2.8.0from
keveleigh:update-tether
May 16, 2022
Merged

Update TetheredPlacement.cs to use local pose#10566
keveleigh merged 2 commits into
microsoft:prerelease/2.8.0from
keveleigh:update-tether

Conversation

@keveleigh

Copy link
Copy Markdown
Contributor

Overview

As the scene can be dragged around, the platform the objects should sit on can move around, causing the objects to respawn into nothingness.

This change allows the objects to remember their relative poses and correctly spawn back above the platform.

@keveleigh

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@keveleigh keveleigh enabled auto-merge (squash) April 29, 2022 01:21
float distanceSqr = (localRespawnPosition - transform.localPosition).sqrMagnitude;

if (distanceSqr > DistanceThreshold * DistanceThreshold)
if (distanceSqr > distanceThresholdSquared)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

With this change, updates to DistanceThreshold do not get applied (distanceThresholdSquared is only calculated in Start)

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.

Updated!

@keveleigh keveleigh changed the base branch from main to prerelease/2.8.0 May 16, 2022 15:06
@keveleigh

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@keveleigh keveleigh merged commit befc10c into microsoft:prerelease/2.8.0 May 16, 2022
@keveleigh keveleigh deleted the update-tether branch May 16, 2022 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants