Download Now

    Reference TPinJoint

    Declared in Codebot.Physics.pas on line 514

    TPinJoint keeps the anchors of two bodies at a fixed distance
      TPinJoint = record
      public
        Ref: cpConstraint;
        class operator Implicit(const Value: TPinJoint): cpConstraint; inline;
        class operator Implicit(const Value: cpConstraint): TPinJoint; inline;
        { Anchors in body coordinates }
        property PinA: TVec2 read GetPinA write SetPinA;
        property PinB: TVec2 read GetPinB write SetPinB;
        { The distance kept between the two anchors }
        property Distance: Float read GetDistance write SetDistance;
      end;

    See also

    Float in Codebot.System.pas
    TVec2 in Codebot.Geometry.pas