Dragger

Show Deprecated

The Dragger object is a helper object used to create tools that can drag parts. It is expected (but not required) to be used with Mouse events.

Its implementation is primarily used in the RbxStamper library.

Summary

Methods

  • Rotates the currently dragged part(s) by 90 degrees on the given axis.

  • MouseDown(mousePart : Instance,pointOnMousePart : Vector3,parts : Instances):()

    Initializes a dragging action, specifying which parts to use when dragging.

  • MouseMove(mouseRay : Ray):()

    Tries to move the currently dragged part to the point where MouseRay hits another part.

  • MouseUp():()

    Stops the current dragging action (made by Dragger:MouseDown()).

Properties

Methods

AxisRotate

()

Rotates the currently dragged part(s) by 90 degrees on the given axis.

Parameters

axis: Enum.Axis
Default Value: "X"

Returns

()

MouseDown

()

Initializes a dragging action, specifying which parts to use when dragging.

Parameters

mousePart: Instance
pointOnMousePart: Vector3
parts: Instances

Returns

()

MouseMove

()

Tries to move the currently dragged part to the point where MouseRay hits another part.

Parameters

mouseRay: Ray

Returns

()

MouseUp

()

Stops the current dragging action (made by Dragger:MouseDown())


Returns

()

Events