Most visited

Recently visited

Node.DragType

public static final enum Node.DragType
extends Enum<Node.DragType>

java.lang.Object
   ↳ java.lang.Enum<com.viro.core.Node.DragType>
     ↳ com.viro.core.Node.DragType


Specifies the behavior of dragging if the Node has an attached DragListener.

Summary

Enum values

Node.DragType  FIXED_DISTANCE

Dragging is limited to a fixed radius around the user, dragged from the point at which the user has grabbed the geometry containing this draggable node. 

Node.DragType  FIXED_DISTANCE_ORIGIN

Dragging is limited to a fixed radius around the user, dragged from the point of this node's position in world space. 

Node.DragType  FIXED_TO_PLANE

Dragging is limited to a user defined plane (specified by a point on the plane and its normal vector). 

Node.DragType  FIXED_TO_WORLD

Dragging is based on intersection with real-world object. 

Public methods

static Node.DragType valueOf(String name)
static final DragType[] values()

Enum values

FIXED_DISTANCE

Node.DragType FIXED_DISTANCE

Dragging is limited to a fixed radius around the user, dragged from the point at which the user has grabbed the geometry containing this draggable node. That is, as you drag a Node around, it never changes its distance from the user: it stays fixed as though you are dragging the Node around the inner surface of sphere.

FIXED_DISTANCE_ORIGIN

Node.DragType FIXED_DISTANCE_ORIGIN

Dragging is limited to a fixed radius around the user, dragged from the point of this node's position in world space. That is, as you drag a Node around, it never changes its distance from the user: it stays fixed as though you are dragging the Node around the inner surface of sphere.

FIXED_TO_PLANE

Node.DragType FIXED_TO_PLANE

Dragging is limited to a user defined plane (specified by a point on the plane and its normal vector). You can also limit the maximum distance the dragged object is allowed to travel away from the camera/controller. These properties are controlled by setDragPlanePoint(Vector), setDragPlaneNormal(Vector), and setDragMaxDistance(float).

FIXED_TO_WORLD

Node.DragType FIXED_TO_WORLD

Dragging is based on intersection with real-world object. This is only available in AR. This setting is used when you wish to drag a Node off a table and onto the ground, for example.

Public methods

valueOf

Node.DragType valueOf (String name)

Parameters
name String

Returns
Node.DragType

values

DragType[] values ()

Returns
DragType[]

Hooray!