0 votes

Hi everyone,

now this might be a stupid question, but I simply cannot find out how to draw a CollisionPolygon2D in the editor. In earlier versions of Godot, there seems to have been a tool for that but those buttons seem to have disappeared in 3.0? Anyway, how do I do this now?

Thanks in advance.

in Engine by (59 points)

1 Answer

+1 vote
Best answer

They still exist, look closer:
enter image description here
CollisionPolygon2D has them, not CollisionShape2D with a Concave/Convex shape.

by (27,825 points)
edited by

My bad, what I was doing was, I had a CollisionShape2D and then selected a ConvexPolygonShape2D as Shape. How do you edit that then? I saw you can type in vertex coordinates manually, is that the only way? Also, what's the difference between this and using a CollisionPolygon2D?

I don't think you can edit those in the editor, not even in Godot 2.1.4.
CollisionPolygon2D allows you to do this, and I believe it is using either Concave or Convex shapes under the hood.

Thanks for the answer! :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.