public static class Chain.JointDefCopyBuilder extends Chain.CopyBuilder
| Modifier and Type | Field and Description |
|---|---|
protected com.badlogic.gdx.physics.box2d.JointDef |
jointDef
the
JointDef to use in createConnection(Body, int, Body, int) |
template| Constructor and Description |
|---|
JointDefCopyBuilder(com.badlogic.gdx.physics.box2d.Body template,
com.badlogic.gdx.physics.box2d.JointDef jointDef) |
| Modifier and Type | Method and 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) |
createSegment, getTemplate, setTemplateprotected com.badlogic.gdx.physics.box2d.JointDef jointDef
JointDef to use in createConnection(Body, int, Body, int)public JointDefCopyBuilder(com.badlogic.gdx.physics.box2d.Body template,
com.badlogic.gdx.physics.box2d.JointDef jointDef)
template - the Chain.CopyBuilder.templatejointDef - the jointDefpublic Chain.Connection createConnection(com.badlogic.gdx.physics.box2d.Body seg1, int seg1index, com.badlogic.gdx.physics.box2d.Body seg2, int seg2index)
Chain.BuilderChain.Connectionseg1 - the first segmentseg1index - the index of the first segmentseg2 - the second segmentseg2index - the index of the second segmentJoint created with jointDefpublic com.badlogic.gdx.physics.box2d.JointDef getJointDef()
jointDefpublic void setJointDef(com.badlogic.gdx.physics.box2d.JointDef jointDef)
jointDef - the jointDef to set