Function Physics2DServerSingleton.pinJointCreate

Creates a pin joint between two bodies. If not specified, the second body is assumed to be the joint itself.

RID pinJointCreate (
  const(Vector2) anchor,
  const(RID) body_a,
  const(RID) body_b = RID(godot_rid(0LU))
) nothrow @nogc;