| Modifier and Type | Class and Description |
|---|---|
class |
FBlob
Represents a blob body that can be added to a world.
|
class |
FBox
Represents a rectangular body that can be added to a world.
|
class |
FCircle
Represents a circular body that can be added to a world.
|
class |
FCompound |
class |
FLine
Represents a line body that can be added to a world.
|
class |
FPoly
Represents a polygonal body that can be added to a world.
|
| Modifier and Type | Field and Description |
|---|---|
protected FBody |
FPrismaticJoint.m_body1 |
protected FBody |
FDistanceJoint.m_body1 |
protected FBody |
FRevoluteJoint.m_body1 |
protected FBody |
FContact.m_body1 |
protected FBody |
FContactResult.m_body1 |
protected FBody |
FPrismaticJoint.m_body2 |
protected FBody |
FDistanceJoint.m_body2 |
protected FBody |
FRevoluteJoint.m_body2 |
protected FBody |
FContact.m_body2 |
protected FBody |
FContactResult.m_body2 |
protected FBody |
FMouseJoint.m_fbody |
protected FBody |
FBody.m_parent |
| Modifier and Type | Method and Description |
|---|---|
FBody |
FWorld.getBody(float x,
float y)
Returns the first object found at the given position.
|
FBody |
FWorld.getBody(float x,
float y,
boolean getStatic)
Returns the first object found at the given position.
|
FBody |
FContact.getBody1()
Returns the first body involved in the contact.
|
FBody |
FContactResult.getBody1()
Returns the first body involved in the contact.
|
FBody |
FJoint.getBody1()
Returns the first body attached to this joint.
|
FBody |
FContact.getBody2()
Returns the second body involved in the contact.
|
FBody |
FContactResult.getBody2()
Returns the second body involved in the contact.
|
FBody |
FJoint.getBody2()
Returns the second body attached to this joint.
|
FBody |
FMouseJoint.getGrabbedBody()
Returns the body grabbed by this joint.
|
FBody |
FBody.getParent() |
FBody |
FWorld.raycastOne(float x1,
float y1,
float x2,
float y2,
FRaycastResult result,
boolean solidShapes) |
| Modifier and Type | Method and Description |
|---|---|
void |
FWorld.add(FBody body)
Add a body to the world.
|
void |
FCompound.addBody(FBody body) |
void |
FWorld.addBody(FBody body) |
void |
FConstantVolumeJoint.addBody(FBody b)
Adds a body to the joint.
|
void |
FBlob.addVertexBody(FBody b)
Adds a vertex body to the initial shape of the blob.
|
boolean |
FContact.contains(FBody n1)
Returns true if the contact contains the body.
|
boolean |
FContact.contains(FBody n1,
FBody n2)
Returns true if the contact contains the two bodies.
|
boolean |
FBody.isConnected(FBody other)
Returns true if the body is joint to the body passed as argument
|
boolean |
FBody.isTouchingBody(FBody b)
Return whether the body is currently touching the body passed as argument.
|
int |
FWorld.raycast(float x1,
float y1,
float x2,
float y2,
FBody[] bodies,
int maxCount,
boolean solidShapes) |
void |
FWorld.remove(FBody body)
Remove a body from the world.
|
void |
FWorld.removeBody(FBody body) |
void |
FMouseJoint.setGrabbedBodyAndTarget(FBody body,
float x,
float y)
Sets the body grabbed by this joint and the target position.
|
void |
FBody.setParent(FBody b) |
void |
FBody.setState(FBody b) |
| Constructor and Description |
|---|
FDistanceJoint(FBody body1,
FBody body2)
Construct a distance joint between two bodies.
|
FMouseJoint(FBody body,
float x,
float y)
Construct a mouse joint between a body and a target.
|
FPrismaticJoint(FBody body1,
FBody body2)
Construct a prismatic joint between two bodies.
|
FRevoluteJoint(FBody body1,
FBody body2)
Construct a revolute joint between two bodies.
|
FRevoluteJoint(FBody body1,
FBody body2,
float x,
float y)
Construct a revolute joint between two bodies given an anchor position.
|