π»Examples
You can do some complex stuff with very little code. Here's how π¨βπ»
Avatar
How to access the left hand of the first registered avatar?
HandView hand = HPTK.core.avatars[0].body.leftHand;How to access the Transform of the master representation of the tip of the pinky finger?
Transform tip = hand.pinky.tip.reprs[AvatarModel.key].transformRef;or
Transform tip = hand.pinky.tip.master.transformRef;How to get the avatar from a hand?
AvatarView a = hand.body.avatar;How to get the root bone of the parent part of the hand (upper arm bone)?
BoneView b = hand.parent.root;Input
How to listen to tracking lost/recovery events?
InputView input = hand.GetRegisteredView<InputView>();
if (input != null)
{
input.onHandTrackingLost.AddListener(myMethodA);
input.onHandTrackingRecovered.AddListener(myMethodB);
}Contact detection
How to get the list of objects that are at least being hovered?
Gesture detection
How to do something only when the user is performing a gesture (index pinch) but not another one (pose match)?
Puppet
How to make slave hand to fall dramatically after 10 seconds?
How to get the maximum stregth for the rotation drive of the physical constraint that drives the index root?
or without hard-coded representation keys (recommended)
Last updated
Was this helpful?