-
Notifications
You must be signed in to change notification settings - Fork 137
Draw tool does not snap to grid correctly #219
Comments
It's because the tool tries to account for angled surfaces to attach cleanly to them. Snapping the hit point to the global grid will cause hovering brushes on planes that are not on the grid. Supposedly, one could work out a check for the surface normal we're attaching to and if it's a straight cardinal direction use a global snap, otherwise keep the local snap to prevent a brush from hovering. Or alternatively throw away the clean attaching to angled surfaces when grid snapping is enabled and force it to the global grid at all times. |
The grid corners you can see on the gif are worldspace grid coordinates that exist on the plane, snapping to the global grid does not mean the points would float in space. |
At the very least it would be incredibly useful to be able to choose to switch between plane-grid and global grid when using the draw tool. Using the draw tool on angled surfaces without drawing on the world grid makes the resulting geometry really unwieldy. |
Yeah that's basically what i'm getting at. I understand the current snapping logic but I think it's less useful (in my experience) than the 2 axes system the projected grid represents |
Yeah. I have noticed that too and fixed that bit for sure. But the slopes ... Can't seem to wrap my head around that part :C Point being, I could drop some code and maybe 2 brains can do more than one? |
@jmickle66666666 is currently working on adding concave shape support to the draw tool as well. You may wish to speak with her before you both end up accidentally fixing the same issue. 😁 |
i actually managed to sort out the grid alignment stuff. i should take that out into a new branch first before doing the concave stuff, since that's gonna be more difficult |
Yes that's why I said the thing with the 2 brains, so we could perhaps look into that together. |
When using the Draw tool, it is snapping to the correct grid size, but not the global position of the grid properly. The Vertex tool and other tools match up with the projected grid perfectly but the draw tool doesn't.
The text was updated successfully, but these errors were encountered: