0 votes

I want to make a responsive area that can be changed for a short duration by using a spell, my question is can I remove/subtract a part of a collision shape 2d with another collision shape 2d or through code, in order to make a temporary pit in the ground?

in Engine by (1,204 points)

1 Answer

0 votes
Best answer

First, if 2.1, you should work with Shapes not CollisionShapes.

Then if you want to overlap zones you can try to do some polygon operations on the original shape, then triangulate all the concave polygons and...


Better why not just add an Area on top that fakes the pit and affects everything within its shape?

by (7,946 points)
selected by

Well, The area thing sounds really clever, and i want to be able to do it on different nodes, using the inspector to create the level and design it, and just be able to let the player create those pit holes where ever he wants

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 Frequently asked questions and 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 [email protected] with your username.