Download Now

    Reference TSlideJoint

    Declared in Codebot.Physics.pas on line 536

    TSlideJoint keeps the anchors of two bodies within a range of distances
      TSlideJoint = record
      public
        Ref: cpConstraint;
        class operator Implicit(const Value: TSlideJoint): cpConstraint; inline;
        class operator Implicit(const Value: cpConstraint): TSlideJoint; inline;
        { Anchors in body coordinates }
        property PinA: TVec2 read GetPinA write SetPinA;
        property PinB: TVec2 read GetPinB write SetPinB;
        { The least and the most distance allowed between the two anchors }
        property Min: Float read GetMin write SetMin;
        property Max: Float read GetMax write SetMax;
      end;

    See also

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