JointSpec record
public sealed record JointSpec What IPhysicsWorld.Join makes a joint from: the two bodies it joins, and everything else as overrides with defaults. A joint keeps its two pivots together and lets the child turn against the parent about the joint’s X, Y and Z axes, each within its own limits.
var elbow = world.Join(new JointSpec(upperArm, forearm)
{
Position = forearm.Position,
Orientation = forearm.Orientation,
Limits = [new JointLimit(0, 0), new JointLimit(0, 0), new JointLimit(-2.4, 0)]
});
- Assembly
- EvilEngine.Api
- Commit
- 4ff877b1