Skip to content

Conversation

@keveleigh
Copy link
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
Contributor Author

/azp run

@azure-pipelines
Copy link

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)

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
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
Contributor Author

/azp run

@azure-pipelines
Copy link

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