# JointFrame record struct

> A joint's frame in one body's own space: where its pivot is and how its axes are turned, both relative to the body's origin. JointSpec takes one for each body as InParent and InChild.

Namespace `EvilEngine.Api.Physics`, assembly `EvilEngine.Api`. Engine commit 4ff877b1.

```csharp
public readonly record struct JointFrame
```

A joint's frame in one body's own space: where its pivot is and how its axes are turned, both relative to the body's origin. [JointSpec](/docs/api/jointspec) takes one for each body as [InParent](/docs/api/jointspec#inparent) and [InChild](/docs/api/jointspec#inchild).

```csharp
var knee = new JointFrame(new MapVector(0, -0.45, 0), Orientation.Identity);
```

## Members

### JointFrame (constructor)

```csharp
public JointFrame(MapVector Position, Orientation Orientation)
```

Makes one from its position and orientation.

### Position (property)

```csharp
public MapVector Position { get; init; }
```

The pivot, in meters from the body's origin on its own axes.

### Orientation (property)

```csharp
public Orientation Orientation { get; init; }
```

How the joint's axes are turned from the body's own.
