Grab Drop Script


GrabDropScript is component of the KinectController-game object in KinectInteractionDemo1-scene. It uses the detected hand-interactions to control the "draggable" objects in the scene. An object is dragged when the user's hand is gripped over the object, and dropped when the user's hand is released. The hand interactions are detected by the InteractionManager - component of KinectController, as well.



Property:
Description:

Draggable Objects

List of the objects that may be dragged and dropped.

Selected Object Material

Material used to outline the currently selected object.

Drag Speed

Drag speed of the selected object.

Min Z

Minimum Z-position of the dragged object, when moving forward and back.

Max Z

Maximum Z-position of the dragged object, when moving forward and back.

Use Gravity

Whether the objects obey gravity when released, or not.

Reset Objects

Whether the objects should be put in their original positions.

Screen Camera

Camera used for screen ray-casting. This is usually the main camera.

Info Gui Text

GUI-Text used to display information messages.

Interaction Manager

Interaction manager instance, used to detect hand interactions. If left empty, it will be the first interaction manager found in the scene.