0 votes

I could attach a bunch of CollisionShapes together to imitate a hollow sphere but I'm instancing this thing at least a hundred times so I'd like to keep it to a minimum.

(In case its important, this is for an Area2D)

in Engine by (33 points)

1 Answer

+1 vote
Best answer

You could draw a polygon shaped like this:


(With the edges better aligned than in this rough sketch)

by (1,744 points)
selected by

Ok I'll try that!

Do you know where the tool is to draw the lines? There aren't any options for it on the toolbar like with Path2D...

It would be easiest to
1) Draw the image with an external image editor (or use https://drive.google.com/file/d/1zxe0O5qvwZXZphEje3g2Gvk98TMY4RjE/view?usp=sharing )
2) Import it in your project as Sprite node
3) Select the sprite
4) In the top toolbar, open the "Sprite" menu
5) Create CollisionPolygon2D from Sprite

I see. Thank you very much for your response.

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.