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

MoveToPosition.TargetObject continues to target its own game object instead of the target #2300

Closed
ForrestTrepte opened this issue Jun 13, 2018 · 0 comments

Comments

@ForrestTrepte
Copy link
Contributor

ForrestTrepte commented Jun 13, 2018

Overview

MoveToPosition.TargetObject specifies "the GameObject with the position the requires animation". However, this variable is only used in GetPosition. The code that sets position sets this.transform.position/localPosition.

Expected Behavior

TargetObject is moved.

Actual Behavior

This GameObject is moved.

Steps to reproduce

  1. Open the CycleArray scene.
  2. Create a new sphere gameobject of scale .25, .25, .25.
  3. Modify PositionCube > MoveToPosition > TargetObject to reference the sphere instead of None.
  4. Run the scene and click on CyclePosition.

expected: The sphere is moved.
actual: The CyclePosition cube is moved.

Unity Editor Version

2017.4.2f2

Mixed Reality Toolkit Release Version

june18_dev 0f9cff7

ForrestTrepte added a commit to ForrestTrepte/MixedRealityToolkit-Unity that referenced this issue Jun 13, 2018
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

No branches or pull requests

2 participants