godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.34k stars 21.06k forks source link

Incorrect behaviour of rotation and scale in gridmaps when precision=double #87339

Open CoolLaugh opened 9 months ago

CoolLaugh commented 9 months ago

Tested versions

Reproducible in: 4.2.1-stable precision=double Not reproducible in: 4.2.1-stable

System information

Godot v4.2.1.stable (b09f793f5) - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 (NVIDIA; 31.0.15.3623) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)

Issue description

When precision is set to double rotation and scale will apply to individual elements of the grid map instead of the entire object. Below is what the gridmap should look like when rotated and scaled. godot_single_precision This is what the same rotation and scale looks like when precision=double. godot_double_precision

Steps to reproduce

  1. Compile godot with "precision=double"
  2. Create a new project
  3. Add a grid map with a mesh library
  4. Modify the rotation or scale

Minimal reproduction project (MRP)

N/A

smix8 commented 9 months ago

That is not a bug of GridMap but a bug in MultiMesh. GridMap only shows the symptoms because it uses MultiMesh internally.

Calinou commented 9 months ago