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.JointDef
jointDef
theJointDef
to 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.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 aChain.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
-
jointDef
protected com.badlogic.gdx.physics.box2d.JointDef jointDeftheJointDef
to 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.template
jointDef
- 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.Builder
connects 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
Joint
created 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
- thejointDef
to set
-