Search Issue Tracker

By Design

Votes

1

Found in

2017.2.1f1

Issue ID

981641

Regression

No

GridLayout.WorldToCell() returns wrong cell with very precise numbers

2D

-

-

Priority: 7Not yet prioritized for a release

-

Severity: 3Secondary functionality broken

Steps to reproduce:
1. Open attached “WorldToCell.zip” Unity project
2. Open “Main” scene
3. Enter Play mode
4. Observe WorldToCell values in the left upper corner of Game view

Expected results:
WorldToCell returns correct cell values
Actual results:
WorldToCell returns wrong cell values (e. g. Vector3 (0.0f, 0.9999f, 0.0f) is returned as (0, 1, 0) instead of (0, 0, 0))


Reproduced in: 2018.1.0b1, 2017.3.0p1, 2017.2.1p1, 2017.2.0b1,

Comments (4)

  1. E23ca55d3cc12071e669c519315a8dfc?d=mm

    mickee

    Jul 27, 2018 10:52

    Hi, we are experiencing the exact same issue. Please Fix.

  2. A5aef0e2ccb47e6fee0573f29458791e?d=mm

    Phylum123

    Jul 05, 2018 22:29

    Why is this bug still here a year later and labelled "By Design", with no explanation? I am having this issue too.

  3. A5aef0e2ccb47e6fee0573f29458791e?d=mm

    Phylum123

    Jul 05, 2018 22:28

    Why is this bug still here a year later and labelled "As Designed"? I am having this issue too. Its not great.

  4. 45b7d8dc85671ef4a9343db4662407a2?d=mm

    ddragondreamer

    Dec 28, 2017 16:06

    This makes impossible to determine which tilemap cell is colliding with some other 2D collider using WorldToCell.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.