-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
ConvexPolygonShape2D can't be edited with mouse like CollisionPolygon2D #21394
Comments
It's still true on 3.2.1 stable for both ConcavePolygonShape2D and ConvexPolygonShape2D |
And also on 3.2.2 beta1 |
Yeah, I recall myself stumbling upon exact issue, but I'm not sure whether this should be a feature, because for polygon-based shape editing Godot has
So, there are several options to address this issue:
For simplistic polygon shape editing (which do not relate to physics, perhaps gameplay needs), this does make sense. Yet there are some inconsistencies between To be honest, I don't quite see the point of having different convex/concave shapes to begin with, I'd just implement a single |
I've also expressed my views in relation to godotengine/godot-proposals#1126 (comment), and could likely work on fixing this already in Godot, just need a blessing from other core devs. |
Figured out how to edit concave (as well as convex) shapes through a similar node: goostengine/goost#2 (comment). I think it would be nice to add this feature to Godot, just because this would promote ease of use for plugins/modules (currently I have to edit the shape through another class, from which the shape is then assigned to |
Upon further research I figured there's godot/editor/plugins/collision_shape_2d_editor_plugin.cpp Lines 148 to 152 in b65ebfc
But I find implementing polygon editing directly within this class to be problematic because there's already So, might be just better and easier to create |
Some discussion from IRC #godotengine-devel channel:
|
I came here after some googling because the warning is actually confusing. I'd vote for removing the option in the droplist. Unless there is a use-case for not removing it ? |
@Mayt38 The option can't be removed from the dropdown as the dropdown will always display all resources that inherit from the "expected" type. |
Godot version:
3.1.dev.f72f744
Issue description:
If you select ConvexPolygonShape2D a as collision shape, you can't draw its points with mouse, you can only manually enter their coordinates in the Inspector, which is tedious.
Compare to CollisionPolygon2D which allows to use mouse to create a polygon.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: