Skip to content
EvilEngine.Api.Physics

JointFrame record struct

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 takes one for each body as InParent and InChild.

var knee = new JointFrame(new MapVector(0, -0.45, 0), Orientation.Identity);
Assembly
EvilEngine.Api
Commit
4ff877b1

Members

JointFrame constructor

public JointFrame(MapVector Position, Orientation Orientation)

Makes one from its position and orientation.

Position property

public MapVector Position { get; init; }

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

Orientation property

public Orientation Orientation { get; init; }

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