|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.phys2d.raw.Body
net.phys2d.raw.StaticBody
A body that will not move
| Field Summary |
| Fields inherited from class net.phys2d.raw.Body |
INFINITE_MASS |
| Constructor Summary | |
StaticBody(Shape shape)
Create a static body |
|
StaticBody(java.lang.String name,
Shape shape)
Create a static body |
|
| Method Summary | |
boolean |
isMoveable()
Check if this body can move |
boolean |
isResting()
Check if this body has been detected as resting and hence is considered static. |
boolean |
isRotatable()
Check if this body can rotate. |
boolean |
isStatic()
Check if this body is static |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StaticBody(Shape shape)
shape - The shape representing this body
public StaticBody(java.lang.String name,
Shape shape)
name - The name to assign to the bodyshape - The shape representing this body| Method Detail |
public boolean isRotatable()
Body
isRotatable in class BodyBody.isRotatable()public boolean isMoveable()
Body
isMoveable in class BodyBody.isMoveable()public boolean isStatic()
isStatic in class Bodypublic boolean isResting()
Body
isResting in class BodyBody.isResting()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||