Download Now

    Reference TBodyHelper

    Declared in Codebot.Physics.pas on line 1408

    TBodyHelper adds the space, the arbiters, and the joints of a body
      TBodyHelper = record helper for TBody
      public
        { The space the body is in }
        function Space: TSpace; inline;
        { Call a function for each collision the body is touching, such as to test
          if the body is on the ground. The body is the first body of each arbiter. }
        procedure EachArbiter(Func: cpBodyArbiterIteratorFunc; Data: Pointer = nil); overload;
        procedure EachArbiter(Method: TArbiterMethod); overload;
        { A for...in enumerator for the joints connected to this body }
        property Joints: TBodyJointEnumerator read GetJoints;
      end;

    See also