public static class Chain.Connection
extends java.lang.Object
joints| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.utils.Array<com.badlogic.gdx.physics.box2d.Joint> |
joints
the
joints of this Chain.Connection |
| Constructor and Description |
|---|
Connection(com.badlogic.gdx.physics.box2d.Joint... joints)
creates a new Connection and
adds the given joints |
Connection(com.badlogic.gdx.physics.box2d.Joint joint)
creates a new Connection and
adds the given joint |
Connection(com.badlogic.gdx.physics.box2d.Joint joint1,
com.badlogic.gdx.physics.box2d.Joint joint2)
creates a new Connection and
adds the given joints |
Connection(com.badlogic.gdx.physics.box2d.Joint joint1,
com.badlogic.gdx.physics.box2d.Joint joint2,
com.badlogic.gdx.physics.box2d.Joint joint3)
creates a new Connection and
adds the given joints |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.badlogic.gdx.physics.box2d.Joint joint)
adds the given joint to joints |
void |
destroy()
destroys all joints |
com.badlogic.gdx.physics.box2d.Joint |
remove(int index)
removes the joint at the given index from joints |
boolean |
remove(com.badlogic.gdx.physics.box2d.Joint joint)
removes the given joint from joints |
public final com.badlogic.gdx.utils.Array<com.badlogic.gdx.physics.box2d.Joint> joints
joints of this Chain.Connectionpublic Connection(com.badlogic.gdx.physics.box2d.Joint joint)
adds the given jointpublic Connection(com.badlogic.gdx.physics.box2d.Joint joint1,
com.badlogic.gdx.physics.box2d.Joint joint2)
adds the given jointspublic Connection(com.badlogic.gdx.physics.box2d.Joint joint1,
com.badlogic.gdx.physics.box2d.Joint joint2,
com.badlogic.gdx.physics.box2d.Joint joint3)
adds the given jointspublic Connection(com.badlogic.gdx.physics.box2d.Joint... joints)
adds the given jointspublic void add(com.badlogic.gdx.physics.box2d.Joint joint)
adds the given joint to jointspublic boolean remove(com.badlogic.gdx.physics.box2d.Joint joint)
removes the given joint from jointspublic com.badlogic.gdx.physics.box2d.Joint remove(int index)
removes the joint at the given index from jointsJointpublic void destroy()
destroys all joints