API Reference

Class List

pc.XrJoint

Represents joint of a finger

Summary

Properties

finger

Finger that joint relates to

hand

Hand that joint relates to

index

Index of a joint within a finger, starting from 0 (root of a finger) all the way to tip of the finger

radius

The radius of a joint, which is a distance from joint to the edge of a skin

tip

True if joint is a tip of a finger

wrist

True if joint is a wrist

Methods

getPosition

Get the world space position of a joint

getRotation

Get the world space rotation of a joint

Details

Constructor

XrJoint(index, id, hand, [finger])

Represents joint of a finger

Parameters

indexnumber

Index of a joint within a finger

idnumber

Id of a joint based on XRHand specs

handpc.XrHand

Hand that joint relates to

fingerpc.XrFinger

Finger that joint is related to, can be null in case of wrist joint

Properties

pc.XrFinger, nullfinger

Finger that joint relates to

pc.XrHandhand

Hand that joint relates to

numberindex

Index of a joint within a finger, starting from 0 (root of a finger) all the way to tip of the finger

numberradius

The radius of a joint, which is a distance from joint to the edge of a skin

booleantip

True if joint is a tip of a finger

booleanwrist

True if joint is a wrist

Methods

getPosition()

Get the world space position of a joint

Returns

pc.Vec3

The world space position of a joint

getRotation()

Get the world space rotation of a joint

Returns

pc.Quat

The world space rotation of a joint