Download Now

    Reference TDampedRotarySpringJoint

    Declared in Codebot.Physics.pas on line 636

    TDampedRotarySpringJoint connects the angles of two bodies with a spring
      TDampedRotarySpringJoint = record
      public
        Ref: cpConstraint;
        class operator Implicit(const Value: TDampedRotarySpringJoint): cpConstraint; inline;
        class operator Implicit(const Value: cpConstraint): TDampedRotarySpringJoint; inline;
        { The angle at which the spring rests }
        property RestAngle: Float read GetRestAngle write SetRestAngle;
        { How stiff the spring is }
        property Stiffness: Float read GetStiffness write SetStiffness;
        { How quickly the spring comes to rest }
        property Damping: Float read GetDamping write SetDamping;
        { A callback which replaces the calculation of the spring torque }
        property TorqueFunc: cpDampedRotarySpringTorqueFunc read GetTorqueFunc write SetTorqueFunc;
      end;

    See also

    Float in Codebot.System.pas