public class StaticBody extends Body
The underlying physics engine does not handle bodies smaller than 0.1 metres well, but static bodies can be as large as 50 metres without trouble.
| Constructor and Description |
|---|
StaticBody(World w)
Initialise a new static body with no shapes attached.
|
StaticBody(World w,
Shape s)
Initialise a new static body with a single shape attached.
|
addCollisionListener, addDestructionListener, addImage, contains, destroy, getAngle, getAngleDegrees, getAngularVelocity, getBodiesInContact, getFillColor, getFixtureList, getImages, getLinearVelocity, getLineColor, getMass, getName, getPosition, getWorld, intersects, intersects, isAlwaysOutline, isClipped, move, putOn, putOn, removeAllCollisionListeners, removeAllDestructionListeners, removeAllImages, removeAttachedImage, removeCollisionListener, removeDestructionListener, rotate, rotate, rotateDegrees, rotateDegrees, setAlwaysOutline, setAngle, setAngleDegrees, setClipped, setFillColor, setLineColor, setName, setPosition, toStringpublic StaticBody(World w)
w - the world in which this body will exist