A B C D F G I L M R S T V W

A

add(FBody) - Method in class fisica.FWorld
Add a body to the world.
add(FJoint) - Method in class fisica.FWorld
Add a joint to the world.
addBody(FBody) - Method in class fisica.FConstantVolumeJoint
Adds a body to the joint.
addBody(FBody) - Method in class fisica.FWorld
 
addForce(float, float) - Method in class fisica.FBlob
 
addForce(float, float) - Method in class fisica.FBody
Add a force applied on the center of the body.
addForce(float, float, float, float) - Method in class fisica.FBody
Add a force to applied to a given point of the body.
addJoint(FJoint) - Method in class fisica.FWorld
 
addTorque(float) - Method in class fisica.FBlob
 
addTorque(float) - Method in class fisica.FBody
Add a rotation force (a torque) to the body.
adjustAngularVelocity(float) - Method in class fisica.FBody
Adjust the rotation velocity of the body.
adjustPosition(float, float) - Method in class fisica.FBody
Adjust the position of the body.
adjustRotation(float) - Method in class fisica.FBody
Adjust the rotation of the body.
adjustVelocity(float, float) - Method in class fisica.FBody
Adjust the velocity of the body.

B

bottom - Variable in class fisica.FWorld
The bottom edge of the world.

C

calculateLength() - Method in class fisica.FDistanceJoint
Sets the length of the joint to the current distance between the bodies.
clear() - Method in class fisica.FWorld
Clear all bodies and joints from the world.

D

draw(PGraphics) - Method in class fisica.FBox
 
draw(PGraphics) - Method in class fisica.FCircle
 
draw(PGraphics) - Method in class fisica.FConstantVolumeJoint
 
draw(PGraphics) - Method in class fisica.FDistanceJoint
 
draw(PGraphics) - Method in class fisica.FGearJoint
 
draw(PGraphics) - Method in class fisica.FLine
 
draw(PGraphics) - Method in class fisica.FMouseJoint
 
draw(PGraphics) - Method in class fisica.FPoly
 
draw(PGraphics) - Method in class fisica.FPrismaticJoint
 
draw(PGraphics) - Method in class fisica.FRevoluteJoint
 
draw(PApplet) - Method in class fisica.FWorld
Draws all the bodies in the world.
draw(PGraphics) - Method in class fisica.FWorld
 
draw() - Method in class fisica.FWorld
Draws all the bodies in the world on the applet canvas.

F

FBlob - Class in fisica
Represents a blob body that can be added to a world.
FBlob() - Constructor for class fisica.FBlob
Constructs a blob body that can be added to a world.
FBody - Class in fisica
Represents a body in the world.
FBody() - Constructor for class fisica.FBody
 
FBox - Class in fisica
Represents a rectangular body that can be added to a world.
FBox(float, float) - Constructor for class fisica.FBox
Constructs a rectangular body that can be added to a world.
FCircle - Class in fisica
Represents a circular body that can be added to a world.
FCircle(float) - Constructor for class fisica.FCircle
Constructs a circular body that can be added to a world.
FConstantVolumeJoint - Class in fisica
Represents constant volume joint that tries to keep the volume enclosed by a group of bodies constant.
FConstantVolumeJoint() - Constructor for class fisica.FConstantVolumeJoint
Constructs an constant volume joint.
FContact - Class in fisica
Represents a contact between two bodies.
FContactResult - Class in fisica
Represents the result of the contact between two bodies.
FDistanceJoint - Class in fisica
Represents a distance joint that tries to keep two bodies at a constant distance.
FDistanceJoint(FBody, FBody) - Constructor for class fisica.FDistanceJoint
Construct a distance joint between two bodies.
FGearJoint - Class in fisica
Represents a gear joint between joints that transfers the movement of one joint to the other.
FGearJoint(FJoint, FJoint) - Constructor for class fisica.FGearJoint
Construct a gear joint between two joints.
fisica - package fisica
 
Fisica - Class in fisica
Represents the library Fisica.
Fisica() - Constructor for class fisica.Fisica
 
Fisica.LibraryNotInitializedException - Exception in fisica
Exception thrown when the library has not been initialized.
FJoint - Class in fisica
Represents a joint between two or more bodies.
FJoint() - Constructor for class fisica.FJoint
 
FLine - Class in fisica
Represents a line body that can be added to a world.
FLine(float, float, float, float) - Constructor for class fisica.FLine
Constructs a line body that can be added to a world.
FMouseJoint - Class in fisica
Represents a mouse joint that tries to keep a body at a constant distance from the target.
FMouseJoint(FBody, float, float) - Constructor for class fisica.FMouseJoint
Construct a mouse joint between a body and a target.
FPoly - Class in fisica
Represents a polygonal body that can be added to a world.
FPoly() - Constructor for class fisica.FPoly
Constructs a polygonal body that can be added to a world.
FPrismaticJoint - Class in fisica
Represents a prismatic joint that restricts the movement of one body with respect to another to a translation along a given axis.
FPrismaticJoint(FBody, FBody) - Constructor for class fisica.FPrismaticJoint
Construct a prismatic joint between two bodies.
FRevoluteJoint - Class in fisica
Represents a revolute joint that restricts the movement of one body with respect to another to rotation around a given anchor.
FRevoluteJoint(FBody, FBody, float, float) - Constructor for class fisica.FRevoluteJoint
Construct a revolute joint between two bodies given an anchor position.
FWorld - Class in fisica
Represents the world where all the bodies live in.
FWorld(float, float, float, float) - Constructor for class fisica.FWorld
Constructs the world where all the bodies live in.
FWorld() - Constructor for class fisica.FWorld
 

G

getAnchor1X() - Method in class fisica.FDistanceJoint
Get the horizontal coordinate of the first anchor point on the first body.
getAnchor1Y() - Method in class fisica.FDistanceJoint
Get the vertical coordinate of the first anchor point on the first body.
getAnchor2X() - Method in class fisica.FDistanceJoint
Get the horizontal coordinate of the second anchor point on the second body.
getAnchor2Y() - Method in class fisica.FDistanceJoint
Get the vertical coordinate of the second anchor point on the second body.
getAnchorX() - Method in class fisica.FMouseJoint
Get the horizontal coordinate of the anchor point on the body.
getAnchorX() - Method in class fisica.FPrismaticJoint
Get the horizontal coordinate of the anchor of the joint.
getAnchorX() - Method in class fisica.FRevoluteJoint
Get the horizontal coordinate of the anchor of the joint around which the bodies can rotate.
getAnchorY() - Method in class fisica.FMouseJoint
Get the vertical coordinate of the anchor point on the body.
getAnchorY() - Method in class fisica.FPrismaticJoint
Get the vertical coordinate of the anchor of the joint.
getAnchorY() - Method in class fisica.FRevoluteJoint
Get the vertical coordinate of the anchor of the joint around which the bodies can rotate.
getAngularVelocity() - Method in class fisica.FBody
Returns the rotation velocity of the body.
getBodies() - Method in class fisica.FConstantVolumeJoint
Return the group of bodies that are connected by this joint.
getBodies() - Method in class fisica.FWorld
Returns a list with all the bodies in the world
getBodies(float, float) - Method in class fisica.FWorld
Returns a list with the 10 first bodies found at the given position.
getBodies(float, float, boolean) - Method in class fisica.FWorld
Returns a list with the 10 first bodies found at the given position.
getBodies(float, float, boolean, int) - Method in class fisica.FWorld
Returns a list with all the bodies found at the given position.
getBody(float, float) - Method in class fisica.FWorld
Returns the first object found at the given position.
getBody(float, float, boolean) - Method in class fisica.FWorld
Returns the first object found at the given position.
getBody1() - Method in class fisica.FContact
Returns the first body involved in the contact.
getBody1() - Method in class fisica.FContactResult
Returns the first body involved in the contact.
getBody1() - Method in class fisica.FJoint
Returns the first body attached to this joint.
getBody2() - Method in class fisica.FContact
Returns the second body involved in the contact.
getBody2() - Method in class fisica.FContactResult
Returns the second body involved in the contact.
getBody2() - Method in class fisica.FJoint
Returns the second body attached to this joint.
getContacts() - Method in class fisica.FBody
Return a list of contacts currently involving the body.
getFriction() - Method in class fisica.FContact
Get the friction coefficient of the contact.
getGrabbedBody() - Method in class fisica.FMouseJoint
Returns the body grabbed by this joint.
getGroupIndex() - Method in class fisica.FBody
 
getHeight() - Method in class fisica.FBox
Returns the height of the rectangle.
getId() - Method in class fisica.FContact
Get the identifier of the contact.
getId() - Method in class fisica.FContactResult
Get the identifier of the contact.
getMouseJoint() - Method in class fisica.FWorld
Returns the mouse joint that is used for interaction with the bodies in the world.
getNormalImpulse() - Method in class fisica.FContactResult
Returns the normal component of the impulse of the contact.
getNormalX() - Method in class fisica.FContact
Returns the horizontal component of the contact normal.
getNormalX() - Method in class fisica.FContactResult
Returns the horizontal component of the contact normal.
getNormalY() - Method in class fisica.FContact
Returns the vertical component of the contact normal.
getNormalY() - Method in class fisica.FContactResult
Returns the vertical component of the contact normal.
getReactionForceX() - Method in class fisica.FJoint
Returns the horizontal component of the reaction force on the second body at the joint anchor.
getReactionForceY() - Method in class fisica.FJoint
Returns the vertical component of the reaction force on the second body at the joint anchor.
getReactionTorque() - Method in class fisica.FJoint
Returns the reaction torque on the second body at the joint anchor.
getRestitution() - Method in class fisica.FContact
Get the restitution coefficient of the contact.
getRotation() - Method in class fisica.FBody
Returns the rotation of the body.
getSeparation() - Method in class fisica.FContact
Get the separation between the bodies.
getSize() - Method in class fisica.FCircle
Returns the size of the circle.
getTangentImpulse() - Method in class fisica.FContactResult
Returns the tangential component of the impulse of the contact.
getTargetX() - Method in class fisica.FMouseJoint
Returns the horizontal target position of the joint.
getTargetY() - Method in class fisica.FMouseJoint
Returns the vertical target position of the joint.
getTouching() - Method in class fisica.FBody
Return a list of bodies currently touching the body.
getVelocityX() - Method in class fisica.FBody
Returns the horizontal velocity of the body.
getVelocityX() - Method in class fisica.FContact
Returns the horizontal component of the contact velocity.
getVelocityY() - Method in class fisica.FBody
Returns the vertical velocity of the body.
getVelocityY() - Method in class fisica.FContact
Returns the vertical component of the contact velocity.
getVertexSize() - Method in class fisica.FBlob
Returns the size of the circular vertices of the blob.
getWidth() - Method in class fisica.FBox
Returns the width of the rectangle.
getX() - Method in class fisica.FBody
Returns the horizontal position of the body.
getX() - Method in class fisica.FContact
Returns the horizontal position of the contact point.
getX() - Method in class fisica.FContactResult
Returns the horizontal position of the contact point.
getY() - Method in class fisica.FBody
Returns the vertical position of the body.
getY() - Method in class fisica.FContact
Returns the vertical position of the contact point.
getY() - Method in class fisica.FContactResult
Returns the vertical position of the contact point.

I

init(PApplet) - Static method in class fisica.Fisica
Initialize the library.
isResting() - Method in class fisica.FBody
Indicates whether the body is in a resting state.
isSensor() - Method in class fisica.FBody
Returns whether the body is a sensor.
isStatic() - Method in class fisica.FBody
Returns whether the body is static.
isTouchingBody(FBody) - Method in class fisica.FBody
Return whether the body is currently touching the body passed as argument.

L

left - Variable in class fisica.FWorld
The left edge of the world.

M

mouseEvent(MouseEvent) - Method in class fisica.FWorld
This is an internal method to handle mouse interaction and should not be used.

R

releaseGrabbedBody() - Method in class fisica.FMouseJoint
Releases the body grabbed by this joint.
remove(FBody) - Method in class fisica.FWorld
Remove a body from the world.
remove(FJoint) - Method in class fisica.FWorld
Remove a joint from the world.
removeBody(FBody) - Method in class fisica.FWorld
 
removeJoint(FJoint) - Method in class fisica.FWorld
 
resetForces() - Method in class fisica.FBody
Remove all the forces that are applied to the body.
right - Variable in class fisica.FWorld
The right edge of the world.

S

screenToWorld(Vec2) - Static method in class fisica.Fisica
 
screenToWorld(float, float) - Static method in class fisica.Fisica
 
screenToWorld(float) - Static method in class fisica.Fisica
 
setAnchor(float, float) - Method in class fisica.FMouseJoint
Sets the anchor position at which the joint grabs the body.
setAnchor(float, float) - Method in class fisica.FPrismaticJoint
Sets the position of the anchor of the joint.
setAnchor(float, float) - Method in class fisica.FRevoluteJoint
Sets the position of the anchor of the joint around which the bodies rotate.
setAnchor1(float, float) - Method in class fisica.FDistanceJoint
Sets the position of the anchor of the first end of the joint on the first body.
setAnchor2(float, float) - Method in class fisica.FDistanceJoint
Sets the position of the anchor of the second end of the joint on the second body.
setAngularDamping(float) - Method in class fisica.FBody
Set the damping of the rotation movement of the body.
setAngularVelocity(float) - Method in class fisica.FBody
Set the rotation velocity of the body.
setAsCircle(float, float, float, int) - Method in class fisica.FBlob
Sets the initial shape of the blob to a circle.
setAsCircle(float, float, float) - Method in class fisica.FBlob
Sets the initial shape of the blob to a circle.
setAsCircle(float) - Method in class fisica.FBlob
Sets the initial shape of the blob to a circle.
setAsCircle(float, int) - Method in class fisica.FBlob
Sets the initial shape of the blob to a circle.
setAxis(float, float) - Method in class fisica.FPrismaticJoint
Sets the axis of movement of the joint.
setBullet(boolean) - Method in class fisica.FBlob
 
setBullet(boolean) - Method in class fisica.FBody
Set whether the body is a bullet.
setCategoryBits(int) - Method in class fisica.FBody
 
setCollideConnected(boolean) - Method in class fisica.FJoint
Sets whether the bodies connected by the joint should collide with each other.
setDamping(float) - Method in class fisica.FBlob
Sets the damping of the springs used to maintain the volume defined by the vertices constant.
setDamping(float) - Method in class fisica.FBody
Set the damping of the translation movement of the body.
setDamping(float) - Method in class fisica.FConstantVolumeJoint
Sets the damping of the springs used to maintain the volume defined by the vertices constant.
setDamping(float) - Method in class fisica.FDistanceJoint
Sets the damping of the spring used to maintain the distance between the bodies constant.
setDamping(float) - Method in class fisica.FMouseJoint
Sets the damping of the spring used to maintain the body and the target together.
setDensity(float) - Method in class fisica.FBlob
 
setDensity(float) - Method in class fisica.FBody
Set the density of the body.
setDrawable(boolean) - Method in class fisica.FBlob
 
setEdges(float, float, float, float, int) - Method in class fisica.FWorld
Add edges of given dimensions to the world.
setEdges(float, float, float, float) - Method in class fisica.FWorld
Add black edges of given dimensions to the world.
setEdges(PApplet, int) - Method in class fisica.FWorld
Add edges of given applet's dimensions to the world.
setEdges(int) - Method in class fisica.FWorld
Add edges of Processing's canvas dimensions to the world.
setEdges() - Method in class fisica.FWorld
Add black edges of Processing's canvas dimensions to the world.
setEdgesFriction(float) - Method in class fisica.FWorld
Set the friction of all the edges.
setEdgesRestitution(float) - Method in class fisica.FWorld
Set the restitution of all the edges.
setEnableLimit(boolean) - Method in class fisica.FPrismaticJoint
Set limits to the allowed translation of one body respect to the other.
setEnableLimit(boolean) - Method in class fisica.FRevoluteJoint
Set limits to the allowed rotation of one body respect to the other.
setEnableMotor(boolean) - Method in class fisica.FRevoluteJoint
Set the state of the motor in order to generate a rotation force (torque) on the joint.
setFillColor(int) - Method in class fisica.FBlob
 
setFilterBits(int) - Method in class fisica.FBody
 
setForce(float, float) - Method in class fisica.FBody
Set the force applied to the center of the body.
setFrequency(float) - Method in class fisica.FBlob
Sets the frequency of the springs used to maintain the volume defined by the vertices constant.
setFrequency(float) - Method in class fisica.FConstantVolumeJoint
Sets the frequency of the springs used to maintain the volume defined by the vertices constant.
setFrequency(float) - Method in class fisica.FDistanceJoint
Sets the frequency of the spring used to maintain the distance between the bodies constant.
setFrequency(float) - Method in class fisica.FMouseJoint
Sets the frequency of the spring used to maintain the body and the target together.
setFriction(float) - Method in class fisica.FBlob
 
setFriction(float) - Method in class fisica.FBody
Set the friction of the body.
setGrabbable(boolean) - Method in class fisica.FBody
Control if this body can be grabbed by the mouse, when clicked on.
setGrabbable(boolean) - Method in class fisica.FWorld
Controls whether the bodies in the world can be grabbed by the mouse or not.
setGrabbedBodyAndTarget(FBody, float, float) - Method in class fisica.FMouseJoint
Sets the body grabbed by this joint and the target position.
setGravity(float, float) - Method in class fisica.FWorld
Set the gravity of the world.
setGroupIndex(int) - Method in class fisica.FBody
Control the group to which this body belongs.
setHeight(float) - Method in class fisica.FBox
Sets the height of the rectangle.
setLength(float) - Method in class fisica.FDistanceJoint
Sets the target distance for the joint.
setLowerAngle(float) - Method in class fisica.FRevoluteJoint
Set the lowest angle allowed.
setLowerTranslation(float) - Method in class fisica.FPrismaticJoint
Set the lowest translation allowed.
setMaxMotorTorque(float) - Method in class fisica.FRevoluteJoint
Set the maximum torque that the joint's motor can apply in order to acheive the desired speed.
setMotorSpeed(float) - Method in class fisica.FRevoluteJoint
Set the desired rotation speed of the joint.
setNoFill() - Method in class fisica.FBlob
 
setNoStroke() - Method in class fisica.FBlob
 
setPosition(float, float) - Method in class fisica.FBody
Set the position of the body.
setRatio(float) - Method in class fisica.FGearJoint
Sets the ratio of movement transfer from one joint to the other of the gear.
setReferenceAngle(float) - Method in class fisica.FRevoluteJoint
 
setRestitution(float) - Method in class fisica.FBlob
 
setRestitution(float) - Method in class fisica.FBody
Set the restitution of the body.
setRotatable(boolean) - Method in class fisica.FBody
Set whether the body can rotate.
setRotation(float) - Method in class fisica.FBody
Set the rotation of the body.
setScale(float) - Static method in class fisica.Fisica
Set the scale from screen units to world units.
setSensor(boolean) - Method in class fisica.FBody
Set whether the body is a sensor.
setStatic(boolean) - Method in class fisica.FBody
Set whether the body is static.
setStaticBody(boolean) - Method in class fisica.FBody
Set whether the body is static.
setStrokeColor(int) - Method in class fisica.FBlob
 
setStrokeWeight(float) - Method in class fisica.FBlob
 
setTarget(float, float) - Method in class fisica.FMouseJoint
Sets the target position of the joint.
setUpperAngle(float) - Method in class fisica.FRevoluteJoint
Set the highest angle allowed.
setUpperTranslation(float) - Method in class fisica.FPrismaticJoint
Set the highest translation allowed.
setVelocity(float, float) - Method in class fisica.FBody
Set the velocity of the body.
setVertexSize(float) - Method in class fisica.FBlob
Sets the size of the circular vertices of the blob.
setWidth(float) - Method in class fisica.FBox
Sets the width of the rectangle.
step() - Method in class fisica.FWorld
Advance the world simulation of 1/60th of a second.
step(float) - Method in class fisica.FWorld
Advance the world simulation of given time.
step(float, int) - Method in class fisica.FWorld
Advance the world simulation of given time, with a given number of iterations.

T

top - Variable in class fisica.FWorld
The top edge of the world.

V

vertex(float, float) - Method in class fisica.FBlob
Adds a vertex to the initial shape of the blob.
vertex(float, float) - Method in class fisica.FPoly
Adds vertices to the shape of the poly.

W

worldToScreen(Vec2) - Static method in class fisica.Fisica
 
worldToScreen(float, float) - Static method in class fisica.Fisica
 
worldToScreen(float) - Static method in class fisica.Fisica
 

A B C D F G I L M R S T V W

processing library fisica by Ricard Marxer. (c) 2009