Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
2019.3.0a4
Issue ID
1160337
Regression
No
Transform Component displays Z-Axis and X-Axis values changing when Translating a GameObject through X-Axis using Input Vertical
Steps to reproduce:
1. Open users attached project "OccultVoxel.zip"
2. Navigate to Project -> Assets -> Scenes and open "TestScene"
3. In the Hierarchy select GameObject "Player"
4. Enter Play mode
5. Press W or S to move the "Player"
--Notice the Z axis changes in Transform Position of the Player
Expected results: Transform Component Axis values are only changing when a GameObject is moved through those Axis
Actual Results: Z axis value is changing in the Transform Component when Translating a GameObject in the X-Axis
Reproducible with: 2017.4.0f1, 2017.4.28f1, 2018.4.2f1, 2019.1.5f1, 2019.2.0b5, 2019.3.0a4
Note: If GameObject is moved manually in the scene through Z-Axis, the bug will not reproduce after the GameObject is moved
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor freezes after some time when using NavMeshQuery::Raycast
- Cube is rendered green when its color is set to black and using the Lift Gamma Gain Volume interpolation
- Inner and outer exceptions are not unrolled correctly
- [iOS][WebGL] Audio Clip doesn't play when Load Type is set to Decompress On Load and iOS Silent Mode is enabled
- Crash on EditorBuildSettings::GetConfigObject when closing a specific project
Resolution Note:
This is due to floating-point inaccuracies caused by the rotation of "Player" object by -90 degrees around the Y axis. The Z values involved are very close to zero (e.g. -3.951758e-08).
You can avoid this by not rotating "Player" by 90 degrees and changing the PlayerMovementScript component to match.