TeslasuitDocumentation
Plugins

Hand prefabs

The hand_l and hand_r prefabs are self-contained, glove-driven hand rigs. Each is a complete tracked hand: drop one into a scene, connect a Teslasuit glove, and the fingers follow the glove's finger tracking with no extra wiring.

Each prefab is two things: a hand mesh, rendered by a SkinnedMeshRenderer, and a hand skeleton. On the skeleton's root sit three plugin components that make it glove-driven:

ComponentRole
TsGloveBehaviourResolves the glove device from a glove index and side, and reports connection state. Preset to TsDeviceSide.Left in hand_l and TsDeviceSide.Right in hand_r. Derives from TsDeviceBehaviour, so TsLiveMotionProvider (and a TsHapticPlayer, if you add one) can require it on the same GameObject.
TsLiveMotionProviderStarts the glove's mocap stream and exposes the live skeleton.
TsHandAnimatorReads the skeleton each frame and rotates the finger bones to match.

Using a prefab#

  1. Drag hand_l or hand_r from TS/Examples/Prefabs into your scene.
  2. On the root, set the glove index and side on TsGloveBehaviour to match your hardware. The defaults are Glove0 and the side matching the prefab.
  3. Enter play mode with a glove connected. The hand tracks immediately.

Note. The prefabs are not bound to the example scene. They carry everything they need, so they work as-is in a fresh scene once a glove is connected.

Retargeting to your own hand mesh#

The prefabs use their own bundled skeleton and mesh. To drive a different hand model, create a new TsHandAvatarSettings asset (menu Assets/Create/Teslasuit/Motion/Hand avatar settings), assign your hand model and side so the finger transforms map automatically, then point a TsHandAnimator on your rig at that asset and at a TsLiveMotionProvider.