API:Class/Dragger

Client only:This class is client-side only! You should use a LocalScript instead of a Script when using it.
Filtered-inheritance mode: While this class technically inherits all Instance class members, some (if not all) have been hidden because they serve no purpose for this object.

Clickdetector icon.pngDragger : Object Icon.pngInstance

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.pngMouse events.
Its implementation is primarily used in the RbxStamper.pngRbxStamper library.

Functions

Functions [toggle]

voidAxisRotate ( Axis axis = X )

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

|RMD member="API:Class/Dragger/AxisRotate"|Rotates the currently dragged part(s) by 90 degrees on the given axis.|/RMD|
voidMouseDown ( BasePart mousePart, Vector3 pointOnMousePart, array<BasePart> parts )

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

|RMD member="API:Class/Dragger/MouseDown"|Initializes a dragging action, specifying which parts to use when dragging.|/RMD|
voidMouseMove ( Ray mouseRay )

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

|RMD member="API:Class/Dragger/MouseMove"|Tries to move the currently dragged part to the point where MouseRay hits another part.|/RMD|
voidMouseUp ( )

Stops the current dragging action (made by MouseDown).

|RMD member="API:Class/Dragger/MouseUp"|Stops the current dragging action (made by MouseDown).|/RMD|
AxisRotate ( Axis axis = X )
Rotates the currently dragged part(s) by 90 degrees on the given axis.
MouseDown ( BasePart mousePart, Vector3 pointOnMousePart, array<BasePart> parts )
Initializes a dragging action, specifying which parts to use when dragging.
MouseMove ( Ray mouseRay )
Tries to move the currently dragged part to the point where MouseRay hits another part.
Stops the current dragging action (made by MouseDown).


|RMD member="API:Class/Dragger"|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.pngMouse events.
Its implementation is primarily used in the RbxStamper.pngRbxStamper library. |/RMD|