Dragger

Mostrar obsoleto

*Pronto este contenido estará disponible en tu idioma seleccionado.

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.

Resumen

Métodos

  • AxisRotate(axis : Enum.Axis):void

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

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

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

  • MouseMove(mouseRay : Ray):void

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

  • MouseUp():void

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

Propiedades

Métodos

AxisRotate

void

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

Parámetros

axis: Enum.Axis
Valor predeterminado: "X"

Devuelve

void

MouseDown

void

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

Parámetros

mousePart: Instance
pointOnMousePart: Vector3
parts: Instances

Devuelve

void

MouseMove

void

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

Parámetros

mouseRay: Ray

Devuelve

void

MouseUp

void

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


Devuelve

void

Eventos