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 Summary

    Fields
    Modifier and Type Field Description
    protected com.badlogic.gdx.physics.box2d.JointDef jointDef

    Fields inherited from class net.dermetfan.gdx.physics.box2d.Chain.CopyBuilder

    template
  • Constructor Summary

    Constructors
    Constructor Description
    JointDefCopyBuilder​(com.badlogic.gdx.physics.box2d.Body template, com.badlogic.gdx.physics.box2d.JointDef jointDef)  
  • Method Summary

    Modifier and Type Method Description
    Chain.Connection createConnection​(com.badlogic.gdx.physics.box2d.Body seg1, int seg1index, com.badlogic.gdx.physics.box2d.Body seg2, int seg2index)
    connects two segments with each other using a Chain.Connection
    com.badlogic.gdx.physics.box2d.JointDef getJointDef()  
    void setJointDef​(com.badlogic.gdx.physics.box2d.JointDef jointDef)  

    Methods inherited from class net.dermetfan.gdx.physics.box2d.Chain.CopyBuilder

    createSegment, getTemplate, setTemplate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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