+1 vote

Basically i need to be able to edit some Points on a CollisionPolygon2D in my Game so i can make it adjust to the window size How might i be able to do this, because the documentation for it says it's editor only in terms of coding

in Engine by (484 points)

1 Answer

0 votes

I have changed the collisionShape in my game with

clear_shapes()
add_shape(new_shape,old_transform)

the old_transform i got like this:

func _ready():
    old_transform= get_shape_transform(0)
by (685 points)
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.