How to make the resize handles for nodes have the same shape as the object

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kovaz
:warning: Old Version Published before Godot 3 was released.

I’ve got some scenes created with basic objects that I want to build my levels from. In this example, a wall. I created a simple scene with a CollisionShape2D and a Polygon2D, both 10px by 10px. When I instance this scene in my World scene, I want to be able to stretch and resize this wall object to build, say, a maze. However, the resize handles for this object are bigger than the object, and any resize is anchored to the top-left corner of the resize handles. So, if I have the left edge of my wall aligned properly, stretching horizontally to align the right edge will pull the left edge out of alignment.

Is there an option anywhere to change this behaviour?

Before using the right handle to resize:
Before

After using the right handle to resize:
After

You are scaling the little polygon, right? that may be affecting the region, would not be better to handle the polygon points instead?

Or make a tool that _drawrectangles of the size of the shape.

eons | 2017-04-23 21:32

I’m scaling the little polygon, but it’s not as simple as just scaling the polygon points because there’s more than just a polygon there in this example. I want to resize both the polygon and the collision shape together, and there may be more in other examples. Even if I abandon this idea of scaling complex objects, something as simple as a CollisionShape2D doesn’t let me resize how I want. I can either resize the shape directly horizontally or vertically, anchored around the center of the object (causing both edges to grow or shrink), or I can use the resize handles that are bigger than the object, causing it to move when I resize it. I want to grab the right edge and resize without moving the left, top, or bottom edges.

Kovaz | 2017-04-24 01:35

Rectangle shapes have that thing, they only increase extents, centered, you have the option of polygon shapes, not sure if scaling works fine on these but you can easily copy the polygon data to the polygon shape.

eons | 2017-04-24 15:55