- 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.
- FCompound - Class in fisica
-
- FCompound() - Constructor for class fisica.FCompound
-
- 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.
- FContactAdapter - Class in fisica
-
- FContactAdapter() - Constructor for class fisica.FContactAdapter
-
- FContactListener - Interface in fisica
-
- 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.
- FDrawable - Class in fisica
-
This is a class from which all drawable objects of a world inherit.
- FDrawable() - Constructor for class fisica.FDrawable
-
- 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.
- FRaycastResult - Class in fisica
-
Represents the result of a casted ray.
- FRaycastResult() - Constructor for class fisica.FRaycastResult
-
- 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.
- FRevoluteJoint(FBody, FBody) - Constructor for class fisica.FRevoluteJoint
-
Construct a revolute joint between two bodies.
- 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
-
- 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.FCompound
-
- 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.
- getBox2dBody() - Method in class fisica.FBody
-
WARNING: This method is internal only and may change someday.
- getBox2dJoint() - Method in class fisica.FJoint
-
WARNING: This method is internal only and may change someday.
- getCategoryBits() - Method in class fisica.FBody
-
- getCentroid() - Method in class fisica.FConstantVolumeJoint
-
- getContacts() - Method in class fisica.FBody
-
Return a list of contacts currently involving the body.
- getDensity() - Method in class fisica.FBody
-
Get the density of the body.
- getFillColor() - Method in class fisica.FDrawable
-
Returns the fill color of the object.
- getFilterBits() - Method in class fisica.FBody
-
- getForceX() - Method in class fisica.FBody
-
Get the x coordinate of the force applied to the center of the body.
- getForceY() - Method in class fisica.FBody
-
Get the y coordinate of the force applied to the center of 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
-
Get the group to which this body belongs.
- 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.
- getImageAlpha() - Method in class fisica.FDrawable
-
Get the opacity with which to draw the attached image.
- getJoints() - Method in class fisica.FBody
-
Returns a list with all the joints with a connection to the body
- getLambda() - Method in class fisica.FRaycastResult
-
Returns the lambda of the raycast result.
- getMass() - Method in class fisica.FBody
-
Returns the mass of the body.
- getMouseJoint() - Method in class fisica.FWorld
-
Returns the mouse joint that is used for interaction with the bodies in the world.
- getName() - Method in class fisica.FBody
-
Get the name of the body.
- 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.
- getNormalX() - Method in class fisica.FRaycastResult
-
Returns the horizontal component of the ray cast 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.
- getNormalY() - Method in class fisica.FRaycastResult
-
Returns the vertical component of the ray cast contact normal.
- getParent() - Method in class fisica.FBody
-
- 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.
- getShapeDefs() - Method in class fisica.FCompound
-
- 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.
- getVertexBodies() - Method in class fisica.FBlob
-
Returns vertices of the blob.
- getVertexSize() - Method in class fisica.FBlob
-
Returns the size of the circular vertices of the blob.
- getVertexX(int) - Method in class fisica.FBlob
-
Gets the x coordinate of the ith vertex of the initial shape of the blob.
- getVertexY(int) - Method in class fisica.FBlob
-
Gets the y coordinate of the ith vertex of the initial shape 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.
- getX() - Method in class fisica.FRaycastResult
-
Returns the horizontal component of the ray cast contact normal.
- 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.
- getY() - Method in class fisica.FRaycastResult
-
Returns the vertical component of the contact ray cast normal.
- grabBody(float, float) - Method in class fisica.FWorld
-
- 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
-
- setAllowSleeping(boolean) - Method in class fisica.FBody
-
Set whether the body can sleep.
- 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.
- setContactListener(FContactListener) - Method in class fisica.FWorld
-
- 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
-
- setDrawable(boolean) - Method in class fisica.FDrawable
-
Set whether the object must be drawn or not.
- 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.
- setEnd(float, float) - Method in class fisica.FLine
-
Sets the end point of the line.
- setFill(float) - Method in class fisica.FDrawable
-
Set the fill color of the object.
- setFill(float, float) - Method in class fisica.FDrawable
-
Set the fill color of the object.
- setFill(float, float, float) - Method in class fisica.FDrawable
-
Set the fill color of the object.
- setFill(float, float, float, float) - Method in class fisica.FDrawable
-
Set the fill color of the object.
- setFillColor(int) - Method in class fisica.FBlob
-
- setFillColor(int) - Method in class fisica.FDrawable
-
Set the fill color of the object.
- 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.
- setImageAlpha(float) - Method in class fisica.FDrawable
-
Set the opacity with which to draw the attached image.
- 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.
- setName(String) - Method in class fisica.FBody
-
Set the name of the body.
- setNoFill() - Method in class fisica.FBlob
-
- setNoFill() - Method in class fisica.FDrawable
-
Set that the object must be drawn without fill.
- setNoStroke() - Method in class fisica.FBlob
-
- setNoStroke() - Method in class fisica.FDrawable
-
Set that the object must be drawn without stroke.
- setParent(FBody) - Method in class fisica.FBody
-
- 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.
- setSize(float) - Method in class fisica.FCircle
-
Sets the size of the circle.
- setStart(float, float) - Method in class fisica.FLine
-
Sets the start point of the line.
- setState(FBody) - Method in class fisica.FBody
-
- setStateFromWorld() - Method in class fisica.FBody
-
- 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.
- setStroke(float) - Method in class fisica.FDrawable
-
Set the stroke color of the object.
- setStroke(float, float) - Method in class fisica.FDrawable
-
Set the stroke color of the object.
- setStroke(float, float, float) - Method in class fisica.FDrawable
-
Set the stroke color of the object.
- setStroke(float, float, float, float) - Method in class fisica.FDrawable
-
Set the stroke color of the object.
- setStrokeColor(int) - Method in class fisica.FBlob
-
- setStrokeColor(int) - Method in class fisica.FDrawable
-
Set the stroke color of the object.
- setStrokeWeight(float) - Method in class fisica.FBlob
-
- setStrokeWeight(float) - Method in class fisica.FDrawable
-
Set the stroke weight of the object.
- 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.