Note
YOU NEED TO DISPOSE SHAPES YOU CREATED YOURSELF AFTER YOU NO LONGER USE THEM! E.g. after calling body.createFixture();
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Shape.
Enum describing the type of a shape |
| Modifier and Type | Field and Description |
|---|---|
| protected long | addr
the address of the shape |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements com. Needs to be called when the shape is no longer used, e.g. after a fixture was created based on the shape. |
| public int | |
| public float | |
| public abstract Shape. | |
| private native void | |
| private native int | |
| private native float | |
| protected static native int | |
| private native void | |
| public void |
| addr | back to summary |
|---|---|
| protected long addr the address of the shape | |
| Shape | back to summary |
|---|---|
| public Shape() | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Needs to be called when the shape is no longer used, e.g. after a fixture was created based on the shape.
| |
| getChildCount | back to summary |
|---|---|
| public int getChildCount() Get the number of child primitives. | |
| getRadius | back to summary |
|---|---|
| public float getRadius() Returns the radius of this shape | |
| getType | back to summary |
|---|---|
| public abstract Shape. Get the type of this shape. You can use this to down cast to the concrete shape. | |
| jniDispose | back to summary |
|---|---|
| private native void jniDispose(long addr) | |
| jniGetChildCount | back to summary |
|---|---|
| private native int jniGetChildCount(long addr) | |
| jniGetRadius | back to summary |
|---|---|
| private native float jniGetRadius(long addr) | |
| jniGetType | back to summary |
|---|---|
| protected static native int jniGetType(long addr) | |
| jniSetRadius | back to summary |
|---|---|
| private native void jniSetRadius(long addr, float radius) | |
| setRadius | back to summary |
|---|---|
| public void setRadius(float radius) Sets the radius of this shape | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Shape. | |
| public static final Shape. | |
| public static final Shape. | |
| public static final Shape. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Shape. | |
| public static Shape. |
| Chain | back to summary |
|---|---|
| public static final Shape. | |
| Circle | back to summary |
|---|---|
| public static final Shape. | |
| Edge | back to summary |
|---|---|
| public static final Shape. | |
| Polygon | back to summary |
|---|---|
| public static final Shape. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static Shape. | |
| values | back to summary |
|---|---|
| public static Shape. | |