Package net.dermetfan.gdx.physics.box2d
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.JointDefjointDeftheJointDefto use increateConnection(Body, int, Body, int)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.ConnectioncreateConnection(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 aChain.Connectioncom.badlogic.gdx.physics.box2d.JointDefgetJointDef()voidsetJointDef(com.badlogic.gdx.physics.box2d.JointDef jointDef)Methods inherited from class net.dermetfan.gdx.physics.box2d.Chain.CopyBuilder
createSegment, getTemplate, setTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
jointDef
protected com.badlogic.gdx.physics.box2d.JointDef jointDeftheJointDefto use increateConnection(Body, int, Body, int)
-
-
Constructor Details
-
JointDefCopyBuilder
public JointDefCopyBuilder(com.badlogic.gdx.physics.box2d.Body template, com.badlogic.gdx.physics.box2d.JointDef jointDef)- Parameters:
template- theChain.CopyBuilder.templatejointDef- thejointDef
-
-
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.Builderconnects two segments with each other using aChain.Connection- Parameters:
seg1- the first segmentseg1index- the index of the first segmentseg2- the second segmentseg2index- the index of the second segment- Returns:
- a new
Jointcreated withjointDef
-
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- thejointDefto set
-