Link Search Menu Expand Document

ResizeHandle

A window resize widget.

Grab and move to resize your view from its center point.

Constructor

 resizeHandle = ResizeHandle(bounds, translationConstraint, rotationConstraint)

Arguments

Name Type Description
bounds Bounds The ResizeHandle’s bounds.
translationConstraint table Only allow the indicated fraction of movement in the corresponding axis in the actuated entity’s local coordinate space. E g, to only allow movement along the floor (no lifting), set the y fraction to 0: {1, 0, 1}.
rotationConstraint table Similarly, constrain rotation to the given fraction in the given euler axis in the actuated entity’s local coordinate space. E g, to only allow rotation along Y (so that it always stays up-right), use: {0, 1, 0}.

Returns

Nothing


Methods