public static interface Chain.Builder
Chain to modify it| 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.Body |
createSegment(int index,
int length,
Chain chain)
creates a segment that is going to be added to
Chain.segments |
com.badlogic.gdx.physics.box2d.Body createSegment(int index,
int length,
Chain chain)
Chain.segmentsChain.Connection createConnection(com.badlogic.gdx.physics.box2d.Body seg1, int seg1index, com.badlogic.gdx.physics.box2d.Body seg2, int seg2index)
Chain.Connectionseg1 - the first segmentseg1index - the index of the first segmentseg2 - the second segmentseg2index - the index of the second segmentChain.Connection