Called internally when adding the interaction manager to an interaction engine. Here the viewport is set.
Add a new drag constraint. Returns a token that is used for removing the drag constraint via removeRestriction.
Add a new restriction. Returns a token that is used for removing the restriction via removeRestriction.
For onDown events (pointerdown) this method is called. The pointer event is already translated into a ray. An array of intersections is provided that is the result of an intersection with the ray and the scene with the applied filters. (Note that filters of other InteractionManagers may also apply, therefore you need to sanitize the intersections in that case)
For onEnd events (pointerup, pointerout) this method is called. The pointer event is already translated into a ray. An array of intersections is provided that is the result of an intersection with the ray and the scene with the applied filters. (Note that filters of other InteractionManagers may also apply, therefore you need to sanitize the intersections in that case)
For onMove events (pointermove) this method is called. The pointer event is already translated into a ray. An array of intersections is provided that is the result of an intersection with the ray and the scene with the applied filters. (Note that filters of other InteractionManagers may also apply, therefore you need to sanitize the intersections in that case)
Called internally to remove the viewport from the manager and to clean up.
Remove the drag constraint that was added via removeRestriction.
Remove the node as the currently used drag node.
Removes the restriction with the given token.
Removes all restrictions.
Set the current dragged node. This will serve as the start of the drag event. This function is also called internally at onDown events.
A filter that is applied during the intersection process. While intersecting, only nodes where this filter applies will be evaluated. The filters can be set per INTERACTION_STATE.