# XrJoint

Class · category: XR

Source: https://github.com/playcanvas/engine/blob/b5b983982a9860d21e0c1dafb2f85f72e2c01afb/src/framework/xr/xr-joint.js#L30

Represents the joint of a finger.

## Accessors

### finger

```ts
get finger(): XrFinger | null
```

Finger that joint relates to.

### hand

```ts
get hand(): XrHand
```

Hand that joint relates to.

### id

```ts
get id(): XRHandJoint
```

Id of a joint based on WebXR Hand Input Specs.

### index

```ts
get index(): number
```

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

### radius

```ts
get radius(): number
```

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

### tip

```ts
get tip(): boolean
```

True if joint is a tip of a finger.

### wrist

```ts
get wrist(): boolean
```

True if joint is a wrist.

## Methods

### getPosition

```ts
getPosition(): Vec3
```

Get the world space position of a joint.

**Returns** [`Vec3`](https://api.playcanvas.com/engine/classes/Vec3.md): The world space position of a joint.

### getRotation

```ts
getRotation(): Quat
```

Get the world space rotation of a joint.

**Returns** [`Quat`](https://api.playcanvas.com/engine/classes/Quat.md): The world space rotation of a joint.
