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

Plugin places multiple meshes at the same position in a single click. #7

Open
TheConceptBoy opened this issue Jun 24, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@TheConceptBoy
Copy link

Godot 3.3.2

If I hold the mouse button, the plugin continuously places scenes where the mouse is. Sometimes It does so by a dozen, so even if I quickly click the mouse, it can place 2 or 3 scenes in the same place at once.

If I hold the mouse for even half a second I end up with 3 dozen scenes, most of which are stacked in the same position.

@Zylann
Copy link
Owner

Zylann commented Jun 24, 2021

This happens because the plugin estimates distances based on the bounding box of the scene. Turns out Sprite3D always returns an empty AABB: godotengine/godot#49898

@TheConceptBoy
Copy link
Author

I see. So is there an alternative method of doing it? Perhaps with ray casting?

@Zylann
Copy link
Owner

Zylann commented Jun 25, 2021

I did not rely on raycast originally because it would require scenes to also have a collider, I didnt want to put this restriction. But I have some ideas to workaround this, by applying a patch for Sprite3D, and also making sure nothing gets painted continuously when the mouse does not move. And of course there could be an option to increase the margin manually

@Zylann Zylann added the bug Something isn't working label Jun 25, 2021
@Zylann
Copy link
Owner

Zylann commented Jun 26, 2021

With 7161d85 objects should no longer be spammed if you dont move the mouse. A single click should place a single object.
Also with bbce138 you can increase the margin manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants