Class Chain.JointDefCopyBuilder

java.lang.Object
net.dermetfan.gdx.physics.box2d.Chain.CopyBuilder
net.dermetfan.gdx.physics.box2d.Chain.JointDefCopyBuilder
All Implemented Interfaces:
Chain.Builder
Enclosing class:
Chain

public static class Chain.JointDefCopyBuilder extends Chain.CopyBuilder
  • Field Details

  • Constructor Details

    • JointDefCopyBuilder

      public JointDefCopyBuilder(com.badlogic.gdx.physics.box2d.Body template, com.badlogic.gdx.physics.box2d.JointDef jointDef)
      Parameters:
      template - the Chain.CopyBuilder.template
      jointDef - the jointDef
  • Method Details

    • createConnection

      public Chain.Connection createConnection(com.badlogic.gdx.physics.box2d.Body seg1, int seg1index, com.badlogic.gdx.physics.box2d.Body seg2, int seg2index)
      Description copied from interface: Chain.Builder
      connects two segments with each other using a Chain.Connection
      Parameters:
      seg1 - the first segment
      seg1index - the index of the first segment
      seg2 - the second segment
      seg2index - the index of the second segment
      Returns:
      a new Joint created with jointDef
    • getJointDef

      public com.badlogic.gdx.physics.box2d.JointDef getJointDef()
      Returns:
      the jointDef
    • setJointDef

      public void setJointDef(com.badlogic.gdx.physics.box2d.JointDef jointDef)
      Parameters:
      jointDef - the jointDef to set