Package net.dermetfan.gdx.physics.box2d
Interface Chain.Builder
- All Known Implementing Classes:
Chain.CopyBuilder,Chain.DefBuilder,Chain.DefShapeBuilder,Chain.JointDefCopyBuilder
- Enclosing class:
- Chain
public static interface Chain.Builder
used by a
Chain to modify it-
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.BodycreateSegment(int index, int length, Chain chain)creates a segment that is going to be added toChain.segments
-
Method Details
-
createSegment
creates a segment that is going to be added toChain.segments -
createConnection
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- Parameters:
seg1- the first segmentseg1index- the index of the first segmentseg2- the second segmentseg2index- the index of the second segment- Returns:
- the created
Chain.Connection
-