Interface for 2-dimensional physical shapes.
See Also:
public interface Shape
Method Summary
Modifier and Type | Method and Description |
---|---|
public Object | createInternal() Creates an internal representation of this Shape. |
public int | getType() Gets the type of this Shape. |
Method Detail
createInternal |
---|
public Object createInternal() Creates an internal representation of this Shape. The exact type of the returned
object depends on the physics simulation engine used internally. Returns:
Box2D representation of this Shape |
getType |
---|
public int getType() Gets the type of this Shape. Each shape defines its own type value, which is stored
as the constant TYPE within the corresponding class. Returns:
The type of the shape |