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

Snap grid alignment isn't fully accurate #103281

Closed
augustvc opened this issue Feb 25, 2025 · 1 comment
Closed

Snap grid alignment isn't fully accurate #103281

augustvc opened this issue Feb 25, 2025 · 1 comment
Labels

Comments

@augustvc
Copy link

augustvc commented Feb 25, 2025

Tested versions

  • Reproducible in 3.6 stable (mono)
  • Not reproducible in 3.5.3 stable (mono)

System information

Windows 10, Godot 3.6 (stable), OpenGL ES 2.0

Issue description

Grid alignment is slightly off. The discrepancy seems to be fractional (it is accurate at 0, and off by 0.8 at 640). You can see the grid x on top also isn't 640, but 640.8

Image

Steps to reproduce

Place a Node2D at an x of 640 with the default grid snap settings (8x8). Look at its position in the snap grid. I would expect it to be on a line, but it is slightly off the line (because the line is in fact on x 640.8 instead of on 640)

Minimal reproduction project (MRP)

You can see the issue in a brand new project just as easy, but here's my project.
Godot grid bug test.zip

@augustvc
Copy link
Author

augustvc commented Feb 25, 2025

duplicate of #98466

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants