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

Segments size in ConcavePolygonShape2D can't be set via mouse #29320

Open
qarmin opened this issue May 30, 2019 · 2 comments
Open

Segments size in ConcavePolygonShape2D can't be set via mouse #29320

qarmin opened this issue May 30, 2019 · 2 comments

Comments

@qarmin
Copy link
Contributor

qarmin commented May 30, 2019

Godot version:
3.2 123edd0

OS/device including version:
Ubuntu 19.04

Issue description:
I can't change segments size in ConcavePolygonShape2D via mouse, because every time when I try to do this this error is shown:

servers/physics_2d/shape_2d_sw.cpp:910 - Condition ' len % 2 ' is true.

Writing from keyboard works great.
Probably this field should have step with size 2, to prevent error spam when changing this values.
Zrzut ekranu z 2019-05-30 18-25-47

Steps to reproduce:

  1. create collision shape
  2. Set as shape ConcavePolygonShape2D
  3. Try to set segments size via mouse or keyboard
@Raphael2048
Copy link
Contributor

Seems that concave polygon size can only be even, don't know why be designed like this.

@Xrayez
Copy link
Contributor

Xrayez commented Jun 30, 2020

Not sure if there's really a need to modify vertices via inspector, this just needs a polygon editor (just like you can edit Polygon2D, CollisionPolygon2D etc).

The idea of making convex and concave polygons consistent is preliminary rejected in #32979 (comment), so the only way to fix this issue now is:

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

Successfully merging a pull request may close this issue.

4 participants