Constructor
new Drag(configopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
Object |
<optional> |
Specify the axes along which the object can be
dragged.
E.g. To constrain the object to an XY plane: |
Extends
Members
type :string
The string name of this class. This is used for THREE.Object3D#getBehaviorByType.
Methods
Type Definitions
DragEvent
Represents events emitted during drag interactions
Properties:
Name | Type | Description |
---|---|---|
ray |
THREE.Ray | The raycaster ray at the time of the event. |
target |
THREE.Object3D | The object which was dragged. |
Events
dragstart
Fired on an object when a drag interaction begins.
Type:
dragstop
Fired on an object when a drag interaction ends