A B C D E F G H I J L M N P Q R S T V W X Y

A

AABox - class net.phys2d.raw.shapes.AABox.
An axis oriented used for shape bounds
AABox(float, float) - Constructor for class net.phys2d.raw.shapes.AABox
Create a new bounding box
AABox(float, float, float, float) - Constructor for class net.phys2d.raw.shapes.AABox
Create a new AABox
AbstractShape - class net.phys2d.raw.shapes.AbstractShape.
Super class of generic shapes in the engine
AbstractShape() - Constructor for class net.phys2d.raw.shapes.AbstractShape
Construct a new shape as subclas swhich will specified it's own bounds
AbstractShape(AABox) - Constructor for class net.phys2d.raw.shapes.AbstractShape
Create a shape
AngleJoint - class net.phys2d.raw.AngleJoint.
A joint that constrains the angle two bodies can be at in relation to each other.
AngleJoint(Body, Body, Vector2f, Vector2f, float, float) - Constructor for class net.phys2d.raw.AngleJoint
Create a new angle joint
AngleJoint(Body, Body, Vector2f, Vector2f, float, float, float) - Constructor for class net.phys2d.raw.AngleJoint
Create a new angle joint
Arbiter - class net.phys2d.raw.Arbiter.
A arbiter resolving contacts between a pair of bodies
ArbiterList - class net.phys2d.raw.ArbiterList.
A typed list of Arbiter
abs(Matrix2f) - Static method in class net.phys2d.math.MathUtil
Create the absolute version of a matrix
abs(Vector2f) - Static method in class net.phys2d.math.MathUtil
Make a vector absolute
accumulatedImpulse - Variable in class net.phys2d.raw.DistanceJoint
The cached impulse through the calculation to yield correct impulse faster
add(Matrix2f, Matrix2f) - Static method in class net.phys2d.math.MathUtil
Add two matricies
add(ROVector2f) - Method in class net.phys2d.math.Vector2f
Add a vector to this vector
add(Body) - Method in class net.phys2d.raw.BodyList
Add a body to the list
add(Body) - Method in class net.phys2d.raw.CollisionSpace
Add a body to the simulation
add(Joint) - Method in class net.phys2d.raw.JointList
Add a joint to the list
add(ForceSource) - Method in class net.phys2d.raw.World
Add a source to affect bodies in this world
add(Joint) - Method in class net.phys2d.raw.World
Add a joint to the simulation
add(Body) - Method in class net.phys2d.raw.World
 
addAABox(AABox, float, float) - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
Combine this space with another box
addBit(long) - Method in class net.phys2d.raw.Body
Set one or more individual bits.
addBit(long) - Method in class net.phys2d.raw.CollisionSpace
Set one or more individual bits of the bitmask used to determine which bits are allowed to collide.
addBody(Body) - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
Add a pody to the space
addExcludedBody(Body) - Method in class net.phys2d.raw.Body
Add a body that this body is not allowed to collide with, i.e.
addForce(Vector2f) - Method in class net.phys2d.raw.Body
Add a force to this body
addListener(CollisionListener) - Method in class net.phys2d.raw.CollisionSpace
Add a listener to be notified of collisions
addPolyPoint(float, float) - Method in class net.phys2d.util.Triangulator
Add a point describing the polygon to be triangulated
addVerticesToSweep(boolean, Vector2f[]) - Method in class net.phys2d.raw.collide.EdgeSweep
Insert a list of edges
added() - Method in class net.phys2d.raw.Body
Check the added to simulation flag
adjustAngularVelocity(float) - Method in class net.phys2d.raw.Body
Adjust the angular velocity of this body
adjustBiasedAngularVelocity(float) - Method in class net.phys2d.raw.Body
Adjust the bias angular velocity of this body
adjustBiasedVelocity(Vector2f) - Method in class net.phys2d.raw.Body
Adjust the bias velocity of this body
adjustPosition(ROVector2f, float) - Method in class net.phys2d.raw.Body
Adjust the position of this body.
adjustPosition(Vector2f) - Method in class net.phys2d.raw.Body
Adjust the position of this body The previous position will be set to the position before this function was called.
adjustRotation(float) - Method in class net.phys2d.raw.Body
Adjust the rotation of this body
adjustVelocity(Vector2f) - Method in class net.phys2d.raw.Body
Adjust the velocity of this body
anchor1 - Variable in class net.phys2d.raw.DistanceJoint
Anchor point for first body, on which impulse is going to apply
anchor2 - Variable in class net.phys2d.raw.DistanceJoint
Anchor point for second body, on which impulse is going to apply
apply(Body, float) - Method in interface net.phys2d.raw.forcesource.ForceSource
Apply the force of this source to the given body
apply(Body, float) - Method in class net.phys2d.raw.forcesource.WindSource
 
applyImpulse() - Method in class net.phys2d.raw.AngleJoint
 
applyImpulse() - Method in class net.phys2d.raw.BasicJoint
Apply the impulse caused by the joint to the bodies attached.
applyImpulse() - Method in class net.phys2d.raw.ConstrainingJoint
 
applyImpulse() - Method in class net.phys2d.raw.DistanceJoint
 
applyImpulse() - Method in class net.phys2d.raw.ElasticJoint
Apply the impulse caused by the joint to the bodies attached.
applyImpulse() - Method in class net.phys2d.raw.FixedAngleJoint
 
applyImpulse() - Method in class net.phys2d.raw.FixedJoint
Apply the impulse caused by the joint to the bodies attached.
applyImpulse() - Method in interface net.phys2d.raw.Joint
Apply the impulse caused by the joint to the bodies attached.
applyImpulse() - Method in class net.phys2d.raw.SlideJoint
 
applyImpulse() - Method in class net.phys2d.raw.SpringJoint
Apply the impulse caused by the joint to the bodies attached.
applyImpulse() - Method in class net.phys2d.raw.SpringyAngleJoint
 
arbiters - Variable in class net.phys2d.raw.CollisionSpace
The arbiters that have been required in the world
area - Variable in class net.phys2d.raw.shapes.Polygon
The total area of this polygon

B

BasicJoint - class net.phys2d.raw.BasicJoint.
A joint between two bodies.
BasicJoint(Body, Body, Vector2f) - Constructor for class net.phys2d.raw.BasicJoint
Create a joint holding two bodies together
Body - class net.phys2d.raw.Body.
A single body within the physics model
Body(DynamicShape, float) - Constructor for class net.phys2d.raw.Body
Create a new un-named body
Body(Shape, float) - Constructor for class net.phys2d.raw.Body
Create a new un-named body
Body(String, DynamicShape, float) - Constructor for class net.phys2d.raw.Body
Create a named body
Body(String, Shape, float) - Constructor for class net.phys2d.raw.Body
Create a named body
BodyList - class net.phys2d.raw.BodyList.
A typed list of Body
BodyList() - Constructor for class net.phys2d.raw.BodyList
Create an empty list
Box - class net.phys2d.raw.shapes.Box.
A simple box in the engine - defined by a width and height
Box(float, float) - Constructor for class net.phys2d.raw.shapes.Box
Create a box in the simulation
BoxBoxCollider - class net.phys2d.raw.collide.BoxBoxCollider.
The implementation of box to box collision.
BoxBoxCollider() - Constructor for class net.phys2d.raw.collide.BoxBoxCollider
 
BoxCircleCollider - class net.phys2d.raw.collide.BoxCircleCollider.
A collider for boxes hitting circles.
BoxCircleCollider() - Constructor for class net.phys2d.raw.collide.BoxCircleCollider
 
BroadCollisionStrategy - interface net.phys2d.raw.BroadCollisionStrategy.
A description of any strategy for determining which bodies should be compared against each other for collision - some times referred to as the broad phase.
BruteCollisionStrategy - class net.phys2d.raw.strategies.BruteCollisionStrategy.
Brute force collision.
BruteCollisionStrategy() - Constructor for class net.phys2d.raw.strategies.BruteCollisionStrategy
 
bias - Variable in class net.phys2d.raw.DistanceJoint
The caculated bias
blocksInnerEdge() - Method in class net.phys2d.raw.shapes.Line
Check if this line blocks the inner side (for want of a better term)
blocksOuterEdge() - Method in class net.phys2d.raw.shapes.Line
Check if this line blocks the outer side (for want of a better term)
bodies - Variable in class net.phys2d.raw.CollisionSpace
The bodies contained in the world
body1 - Variable in class net.phys2d.raw.DistanceJoint
The first body in this joint
body2 - Variable in class net.phys2d.raw.DistanceJoint
The second bodu in this joint
bounds - Variable in class net.phys2d.raw.shapes.AbstractShape
The circular bounds that fit the shape based on the position of the body

C

Circle - class net.phys2d.raw.shapes.Circle.
A simple Circle within the simulation, defined by its radius and the position of the body to which it belongs
Circle(float) - Constructor for class net.phys2d.raw.shapes.Circle
Create a new circle based on its radius
CircleBoxCollider - class net.phys2d.raw.collide.CircleBoxCollider.
A collider for circles hitting boxes, Circle = BodyA, Box = BodyB The create() method is used as a factory incase this class should ever become stateful.
CircleCircleCollider - class net.phys2d.raw.collide.CircleCircleCollider.
A collider for circle 2 circle collisions The create() method is used as a factory just in case this class becomes stateful eventually.
CircleCircleCollider() - Constructor for class net.phys2d.raw.collide.CircleCircleCollider
 
Collide - class net.phys2d.raw.Collide.
A static utility for resolve the collision between shapes TODO: make this nonstatic to allow a user to provide his/her own factory
Collide() - Constructor for class net.phys2d.raw.Collide
 
Collider - interface net.phys2d.raw.collide.Collider.
The description of any geometry collision resolver.
ColliderFactory - class net.phys2d.raw.collide.ColliderFactory.
A collider factory to create colliders for arbitrary bodies, or actually their shapes.
ColliderFactory() - Constructor for class net.phys2d.raw.collide.ColliderFactory
 
ColliderUnavailableException - exception net.phys2d.raw.collide.ColliderUnavailableException.
An exception that is thrown by the ColliderFactory when no suitable collider has been found.
ColliderUnavailableException(Shape, Shape) - Constructor for class net.phys2d.raw.collide.ColliderUnavailableException
Constructs an exception in case there is no collider for a specific combination of two shapes.
ColliderUnavailableException() - Constructor for class net.phys2d.raw.collide.ColliderUnavailableException
A constructor that can be used by subclasses.
CollisionContext - interface net.phys2d.raw.CollisionContext.
The description of a class which can compute the collisions of a set of bodies.
CollisionEvent - class net.phys2d.raw.CollisionEvent.
An event describing a collision between two bodies
CollisionEvent(float, Body, Body, ROVector2f, ROVector2f, float) - Constructor for class net.phys2d.raw.CollisionEvent
Create a new event describing a contact
CollisionListener - interface net.phys2d.raw.CollisionListener.
A description of class that can recieve notifications of collisions within a CollisionSpace
CollisionSpace - class net.phys2d.raw.CollisionSpace.
A space that will resolve collisions and report them to registered listeners.
CollisionSpace(BroadCollisionStrategy) - Constructor for class net.phys2d.raw.CollisionSpace
Create a new collision space based on a given strategy for partioning the space
ConstrainingJoint - class net.phys2d.raw.ConstrainingJoint.
A joint which only applys forces when the bodie's attempt to get too far apart, as suggested by Jesse on: http://slick.javaunlimited.net/viewtopic.php?t=333
ConstrainingJoint(Body, Body, Vector2f, float) - Constructor for class net.phys2d.raw.ConstrainingJoint
Create a new joint
Contact - class net.phys2d.raw.Contact.
A description of a single contact point between two bodies
Contact() - Constructor for class net.phys2d.raw.Contact
Create a new contact point
ConvexPolygon - class net.phys2d.raw.shapes.ConvexPolygon.
Class representing a convex and closed polygon as a list of vertices in counterclockwise order.
ConvexPolygon(ROVector2f[]) - Constructor for class net.phys2d.raw.shapes.ConvexPolygon
Construct the convex polygon with a list of vertices sorted in counterclockwise order.
canRest() - Method in class net.phys2d.raw.Body
Check if this body can come to a resting state
centroid - Variable in class net.phys2d.raw.shapes.Polygon
The center of mass of this polygon
clamp(float, float, float) - Static method in class net.phys2d.math.MathUtil
Clamp a value
clear() - Method in class net.phys2d.raw.ArbiterList
Remove all the elements from the list
clear() - Method in class net.phys2d.raw.BodyList
Clear all the elements out of the list
clear() - Method in class net.phys2d.raw.CollisionSpace
Remove all the elements from this space
clear() - Method in class net.phys2d.raw.JointList
Empty the list
clear() - Method in class net.phys2d.raw.World
Remove all the elements from this world
clearArbiters(Body) - Method in class net.phys2d.raw.World
Clear any arbiters in place for the given body
clearRestingState() - Method in class net.phys2d.raw.World
Reset all dynamic bodies to indicate they are no longer resting.
col1 - Variable in class net.phys2d.math.Matrix2f
The first column of the matrix
col2 - Variable in class net.phys2d.math.Matrix2f
The second column of the matrix
collide(float) - Method in class net.phys2d.raw.Arbiter
Perform the collision analysis between the two bodies arbitrated
collide(Contact[], Body, Body, float) - Static method in class net.phys2d.raw.Collide
Perform the collision between two bodies
collide(float) - Method in class net.phys2d.raw.CollisionSpace
Cause collision to occur and be reported.
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.BoxBoxCollider
 
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.BoxCircleCollider
 
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.CircleBoxCollider
 
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.CircleCircleCollider
 
collide(Contact[], Body, Body) - Method in interface net.phys2d.raw.collide.Collider
Determine is any collisions have occured between the two bodies specified.
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.LineBoxCollider
 
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.LineCircleCollider
 
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.LineLineCollider
 
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.LinePolygonCollider
 
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.PolygonBoxCollider
 
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.PolygonCircleCollider
 
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.PolygonPolygonCollider
 
collide(Contact[], Body, Body) - Method in class net.phys2d.raw.collide.SwapCollider
 
collideBodies(CollisionContext, BodyList, float) - Method in interface net.phys2d.raw.BroadCollisionStrategy
Perform the broad phase strategy.
collideBodies(CollisionContext, BodyList, float) - Method in class net.phys2d.raw.strategies.BruteCollisionStrategy
 
collideBodies(CollisionContext, BodyList, float) - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy
 
collided(Body) - Method in class net.phys2d.raw.Body
Notification that this body collided with another
collisionOccured(CollisionEvent) - Method in interface net.phys2d.raw.CollisionListener
Notification that a collision occured
collisionStrategy - Variable in class net.phys2d.raw.CollisionSpace
The broad phase collision strategy we're using
computeArea() - Method in class net.phys2d.raw.shapes.Polygon
Computes the area as described by Paul Borke.
computeBoundingCircleRadius() - Method in class net.phys2d.raw.shapes.Polygon
Computes the radius of an approximation of a minimal bounding circle which has its origin at (0,0) and sets this.bounds.
computeCentroid() - Method in class net.phys2d.raw.shapes.Polygon
Compute the centroid (center of mass) as described by Paul Borke.
concerns(Body) - Method in class net.phys2d.raw.Arbiter
Check if this arbiter affects the specified body
contains(Arbiter) - Method in class net.phys2d.raw.ArbiterList
Check if an arbiter is contained within a list
contains(Body) - Method in class net.phys2d.raw.BodyList
Check if this list contains the specified body
contains(Joint) - Method in class net.phys2d.raw.JointList
Check if a given joint in container within this list
contains(Vector2f) - Method in class net.phys2d.raw.shapes.ConvexPolygon
Test whether or not the point p is in this polygon in O(n), where n is the number of vertices in this polygon.
contains(ROVector2f) - Method in class net.phys2d.raw.shapes.Polygon
Test whether or not the point p is in this polygon in O(n), where n is the number of vertices in this polygon.
create() - Static method in class net.phys2d.raw.collide.LineBoxCollider
Create a new collider - place holder in case the collider becomes stateful later.
createCircleBoxCollider() - Static method in class net.phys2d.raw.collide.CircleBoxCollider
Get an instance of this collider
createCollider(Body, Body) - Method in class net.phys2d.raw.collide.ColliderFactory
Create a collider for two bodies.
createColliderFor(Circle, Shape) - Method in class net.phys2d.raw.collide.ColliderFactory
Creates a collider for a Circle and a Shape.
createColliderFor(Box, Shape) - Method in class net.phys2d.raw.collide.ColliderFactory
Creates a collider for a Box and a Shape.
createColliderFor(Line, Shape) - Method in class net.phys2d.raw.collide.ColliderFactory
Creates a collider for a Line and a Shape.
createColliderFor(Polygon, Shape) - Method in class net.phys2d.raw.collide.ColliderFactory
Creates a collider for a ConvexPolygon and a Shape.
cross(Vector2f, Vector2f) - Static method in class net.phys2d.math.MathUtil
Find the cross product of two vectors
cross(float, Vector2f) - Static method in class net.phys2d.math.MathUtil
Find the cross product of a vector and a float
cross(Vector2f, float) - Static method in class net.phys2d.math.MathUtil
Find the cross product of a vector and a float

D

DistanceJoint - class net.phys2d.raw.DistanceJoint.
A joint that constrains the distance that two bodies can be from each other
DistanceJoint(Body, Body, Vector2f, Vector2f, float) - Constructor for class net.phys2d.raw.DistanceJoint
 
DynamicShape - interface net.phys2d.raw.shapes.DynamicShape.
A tagging interface used for shapes which the current implementation can use for dynamic bodies - i.e.
disableRestingBodyDetection() - Method in class net.phys2d.raw.World
Disable resting body detection on the world
disabled() - Method in class net.phys2d.raw.Body
Check if this body is disabled
distance(ROVector2f) - Method in interface net.phys2d.math.ROVector2f
Get the distance from this point to another
distance(ROVector2f) - Method in class net.phys2d.math.Vector2f
Get the distance from this point to another
distance(ROVector2f) - Method in class net.phys2d.raw.shapes.Line
Get the shortest distance from a point to this line
distanceSquared(ROVector2f) - Method in interface net.phys2d.math.ROVector2f
Get the distance squared from this point to another
distanceSquared(ROVector2f) - Method in class net.phys2d.math.Vector2f
Get the distance squared from this point to another
distanceSquared(ROVector2f) - Method in class net.phys2d.raw.shapes.Line
Get the shortest distance squared from a point to this line
dot(ROVector2f) - Method in interface net.phys2d.math.ROVector2f
Get the dot product of this vector and another
dot(ROVector2f) - Method in class net.phys2d.math.Vector2f
 
dp - Variable in class net.phys2d.raw.DistanceJoint
Distance Vector

E

EDGE1 - Static variable in class net.phys2d.raw.collide.BoxBoxCollider
The identifier indicating the first edge collides
EDGE2 - Static variable in class net.phys2d.raw.collide.BoxBoxCollider
The identifier indicating the second edge collides
EDGE3 - Static variable in class net.phys2d.raw.collide.BoxBoxCollider
The identifier indicating the third edge collides
EDGE4 - Static variable in class net.phys2d.raw.collide.BoxBoxCollider
The identifier indicating the forth edge collides
EdgeSweep - class net.phys2d.raw.collide.EdgeSweep.
Implements a sweepline algorithm that facilitates collision detection between two polygons.
EdgeSweep(ROVector2f) - Constructor for class net.phys2d.raw.collide.EdgeSweep
Constructs an EdgeSweep object with the given sweep direction.
ElasticJoint - class net.phys2d.raw.ElasticJoint.
A joint between two bodies.
ElasticJoint(Body, Body) - Constructor for class net.phys2d.raw.ElasticJoint
Create a joint holding two bodies together
edgeA - Variable in class net.phys2d.raw.collide.Intersection
The edge of polygon A that intersects
edgeB - Variable in class net.phys2d.raw.collide.Intersection
The edge of polygon B that intersects
enableRestingBodyDetection(float, float, float) - Method in class net.phys2d.raw.World
Enable resting body detection.
endFrame() - Method in class net.phys2d.raw.Body
Notification that we've ended an update frame/iteration
equals(Object) - Method in class net.phys2d.raw.Arbiter
 
equals(Object) - Method in class net.phys2d.raw.BasicJoint
 
equals(Object) - Method in class net.phys2d.raw.Body
 
equals(Object) - Method in class net.phys2d.raw.Contact
 
equals(Object) - Method in class net.phys2d.raw.ElasticJoint
 
equals(Object) - Method in class net.phys2d.raw.FixedJoint
 
equals(Object) - Method in class net.phys2d.raw.SpringJoint
 
equals(Object) - Method in class net.phys2d.raw.collide.FeaturePair
 
equalsDelta(ROVector2f, float) - Method in class net.phys2d.math.Vector2f
Compare two vectors allowing for a (small) error as indicated by the delta.

F

FACE_A_X - Static variable in class net.phys2d.raw.collide.BoxBoxCollider
The identifier for the x coordinate of the first face
FACE_A_Y - Static variable in class net.phys2d.raw.collide.BoxBoxCollider
The identifier for the y coordinate of the first face
FACE_B_X - Static variable in class net.phys2d.raw.collide.BoxBoxCollider
The identifier for the x coordinate of the second face
FACE_B_Y - Static variable in class net.phys2d.raw.collide.BoxBoxCollider
The identifier for the y coordinate of the second face
FeaturePair - class net.phys2d.raw.collide.FeaturePair.
An identifier for a pair of edges between two bodies.
FeaturePair() - Constructor for class net.phys2d.raw.collide.FeaturePair
Public constructor since something in the raw port want to access it.
FeaturePair(int, int, int, int) - Constructor for class net.phys2d.raw.collide.FeaturePair
Construct a feature pair and set edges.
FixedAngleJoint - class net.phys2d.raw.FixedAngleJoint.
A joint that will maintain a fixed angle between two bodies
FixedAngleJoint(Body, Body, Vector2f, Vector2f, float) - Constructor for class net.phys2d.raw.FixedAngleJoint
 
FixedJoint - class net.phys2d.raw.FixedJoint.
A joint between two bodies.
FixedJoint(Body, Body) - Constructor for class net.phys2d.raw.FixedJoint
Create a joint holding two bodies together
ForceSource - interface net.phys2d.raw.forcesource.ForceSource.
A source of force that can potentially be applied to every body every frame

G

get(int) - Method in class net.phys2d.raw.ArbiterList
Get an arbiter at a specified index
get(int) - Method in class net.phys2d.raw.BodyList
Get a body at a specific index
get(int) - Method in class net.phys2d.raw.JointList
Get a joint from the list
getActiveBodies() - Method in class net.phys2d.raw.World
Get the list of bodies that should be considered active at this time.
getActiveJoints() - Method in class net.phys2d.raw.World
Get the list of joints that should be considered active at this time.
getAnchor1() - Method in class net.phys2d.raw.AngleJoint
Get the anchor of the joint on the first body
getAnchor1() - Method in class net.phys2d.raw.DistanceJoint
Get the anchor of the joint on the first body
getAnchor1() - Method in class net.phys2d.raw.FixedAngleJoint
Get the anchor of the joint on the first body
getAnchor1() - Method in class net.phys2d.raw.SlideJoint
Get the anchor of the joint on the first body
getAnchor2() - Method in class net.phys2d.raw.AngleJoint
Get the anchor of the joint on the second body
getAnchor2() - Method in class net.phys2d.raw.DistanceJoint
Get the anchor of the joint on the second body
getAnchor2() - Method in class net.phys2d.raw.FixedAngleJoint
Get the anchor of the joint on the second body
getAnchor2() - Method in class net.phys2d.raw.SlideJoint
Get the anchor of the joint on the second body
getAngularVelocity() - Method in class net.phys2d.raw.Body
Get the angular velocity of this body
getAngularVelocityDelta() - Method in class net.phys2d.raw.Body
Get the change in angular velocity in the last update
getArbiters() - Method in class net.phys2d.raw.World
Retrieve a immutable list of arbiters in the simulation
getArea() - Method in class net.phys2d.raw.shapes.Polygon
Get the area of this polygon
getBiasedAngularVelocity() - Method in class net.phys2d.raw.Body
Get the bias angular velocity of this body
getBiasedVelocity() - Method in class net.phys2d.raw.Body
Get the bias velocity of this body
getBitmask() - Method in class net.phys2d.raw.Body
Get this shape's bitmask
getBitmask() - Method in class net.phys2d.raw.CollisionSpace
Get the bitmask used to determine which bits are allowed to collide.
getBodies() - Method in class net.phys2d.raw.CollisionSpace
Retrieve a immutable list of bodies in the simulation
getBody1() - Method in class net.phys2d.raw.AngleJoint
 
getBody1() - Method in class net.phys2d.raw.Arbiter
Get the first of the two bodies handled by this arbiter
getBody1() - Method in class net.phys2d.raw.BasicJoint
Get the first body attached to this joint
getBody1() - Method in class net.phys2d.raw.ConstrainingJoint
 
getBody1() - Method in class net.phys2d.raw.DistanceJoint
 
getBody1() - Method in class net.phys2d.raw.ElasticJoint
Get the first body attached to this joint
getBody1() - Method in class net.phys2d.raw.FixedAngleJoint
 
getBody1() - Method in class net.phys2d.raw.FixedJoint
Get the first body attached to this joint
getBody1() - Method in interface net.phys2d.raw.Joint
Get the first body attached to this joint
getBody1() - Method in class net.phys2d.raw.SlideJoint
 
getBody1() - Method in class net.phys2d.raw.SpringJoint
Get the first body attached to this joint
getBody1() - Method in class net.phys2d.raw.SpringyAngleJoint
 
getBody2() - Method in class net.phys2d.raw.AngleJoint
 
getBody2() - Method in class net.phys2d.raw.Arbiter
Get the second of the two bodies handled by this arbiter
getBody2() - Method in class net.phys2d.raw.BasicJoint
Get the second body attached to this joint
getBody2() - Method in class net.phys2d.raw.ConstrainingJoint
 
getBody2() - Method in class net.phys2d.raw.DistanceJoint
 
getBody2() - Method in class net.phys2d.raw.ElasticJoint
Get the second body attached to this joint
getBody2() - Method in class net.phys2d.raw.FixedAngleJoint
 
getBody2() - Method in class net.phys2d.raw.FixedJoint
Get the second body attached to this joint
getBody2() - Method in interface net.phys2d.raw.Joint
Get the second body attached to this joint
getBody2() - Method in class net.phys2d.raw.SlideJoint
 
getBody2() - Method in class net.phys2d.raw.SpringJoint
Get the second body attached to this joint
getBody2() - Method in class net.phys2d.raw.SpringyAngleJoint
 
getBodyA() - Method in class net.phys2d.raw.CollisionEvent
Get the first body in the collision
getBodyB() - Method in class net.phys2d.raw.CollisionEvent
Get the second body in the collision
getBounds() - Method in class net.phys2d.raw.shapes.AbstractShape
 
getBounds() - Method in interface net.phys2d.raw.shapes.Shape
Get the box bounds of the shape
getBrokenSpringConst() - Method in class net.phys2d.raw.SpringJoint
Get the spring constant of Hooke's law, when the spring is out of the bounds determined by min and maxSpringsize.
getCentroid() - Method in class net.phys2d.raw.shapes.Polygon
Get the center of mass (aka centroid) for this polygon.
getCentroid(ROVector2f, float) - Method in class net.phys2d.raw.shapes.Polygon
Returns a translated and rotated copy of this poly's centroid.
getClosestPoint(Vector2f, Vector2f, Vector2f) - Static method in class net.phys2d.raw.collide.LineLineCollider
Gets the closest point to a given point on the indefinately extended line.
getClosestPoint(ROVector2f, Vector2f) - Method in class net.phys2d.raw.shapes.Line
Get the closest point on the line to a given point
getCollisionCandidates(Vector2f[], ROVector2f, float, ROVector2f) - Method in class net.phys2d.raw.collide.PolygonCircleCollider
Get the edges from a list of vertices that can collide with the given circle.
getCollisionCandidates(EdgeSweep, Vector2f[], Vector2f[]) - Method in class net.phys2d.raw.collide.PolygonPolygonCollider
This function finds pairs of edges of two polygons by projecting all the edges on a line.
getCollisionCandidates(Vector2f[], Vector2f[], Vector2f, Vector2f) - Method in class net.phys2d.raw.collide.PolygonPolygonCollider
This function finds pairs of edges of two polygons by projecting all the edges on a line.
getCompressedSpringConst() - Method in class net.phys2d.raw.SpringJoint
Get the spring constant of Hooke's law, when the spring is compressed.
getConnected() - Method in class net.phys2d.raw.Body
Get the list of bodies that this body is connected to.
getConnected(boolean) - Method in class net.phys2d.raw.Body
Get the list of bodies that this body is connected to.
getContacts() - Method in class net.phys2d.raw.Arbiter
Retrieve the contacts being resolved by this arbiter
getContacts(Body) - Method in class net.phys2d.raw.World
Get a list of collisions at the current time for a given body
getContentsExcluding(BodyList) - Method in class net.phys2d.raw.BodyList
Get a list of bodies containing all of the bodies in this list except those specified
getDX() - Method in class net.phys2d.raw.shapes.Line
Get the x direction of this line
getDY() - Method in class net.phys2d.raw.shapes.Line
Get the y direction of this line
getDamping() - Method in class net.phys2d.raw.Body
Get the friction of the 'air' on this body that slows down the object.
getDistance() - Method in class net.phys2d.raw.collide.PenetrationSweep.ContourWalker
Get the distance of the current vertex
getEnd() - Method in class net.phys2d.raw.shapes.Line
Get the end point of the line
getEnergy(Body, Body) - Method in class net.phys2d.raw.Arbiter
Get the energy contained within 2 bodies
getEnergy() - Method in class net.phys2d.raw.Body
Get the energy contained in this body
getExcludedList() - Method in class net.phys2d.raw.Body
Get the list of bodies that can not collide with this body
getFeature() - Method in class net.phys2d.raw.Contact
Get the pairing identifing the location of the contact
getForce() - Method in class net.phys2d.raw.Body
Get the force applied to this body
getFriction() - Method in class net.phys2d.raw.Body
Get the friction on the surface of this body
getGravityEffected() - Method in class net.phys2d.raw.Body
Check if this body is effected by gravity
getHeight() - Method in class net.phys2d.raw.shapes.AABox
Get the height of the box
getI() - Method in class net.phys2d.raw.Body
Get the inertia of this body
getID() - Method in class net.phys2d.raw.Body
Get the ID of this body
getIntersectionPairs() - Method in class net.phys2d.raw.collide.IntersectionGatherer
Get the pairs of ingoing and outgoing intersections encountered when tracing the contour of polygon A.
getIntersectionPairs(Vector2f[], Vector2f[], int[][]) - Method in class net.phys2d.raw.collide.PolygonPolygonCollider
Collides two polygons represented by two (already translated and rotated) lists of vertices for both vertices.
getIntersections() - Method in class net.phys2d.raw.collide.IntersectionGatherer
Get the list of intersections, sorted by the order defined by IntersectionComparator.
getJoints() - Method in class net.phys2d.raw.World
Retrieve a immutable list of joints in the simulation
getLastAngularVelocity() - Method in class net.phys2d.raw.Body
Get the angular velocity before the last update.
getLastPosition() - Method in class net.phys2d.raw.Body
Get the position of this body before it was moved
getLastVelocity() - Method in class net.phys2d.raw.Body
Get the velocity before the last update.
getLocalAnchor1() - Method in class net.phys2d.raw.BasicJoint
Retrieve the anchor for the first body attached
getLocalAnchor1() - Method in class net.phys2d.raw.ElasticJoint
Retrieve the anchor for the first body attached
getLocalAnchor1() - Method in class net.phys2d.raw.SpringJoint
Retrieve the anchor for the first body attached
getLocalAnchor2() - Method in class net.phys2d.raw.BasicJoint
Retrieve the anchor for the second body attached
getLocalAnchor2() - Method in class net.phys2d.raw.ElasticJoint
Retrieve the anchor for the second body attached
getLocalAnchor2() - Method in class net.phys2d.raw.SpringJoint
Retrieve the anchor for the second body attached
getMass() - Method in class net.phys2d.raw.Body
Get the mass of this body
getMaxDistance() - Method in class net.phys2d.raw.SlideJoint
Get the maximum distance between two bodies
getMaxSpringSize() - Method in class net.phys2d.raw.SpringJoint
Get the maximum size of the spring, if it stretches beyond this size the string is considered 'broken'.
getMinDistance() - Method in class net.phys2d.raw.SlideJoint
Get the minimum distance between two bodies
getMinSpringSize() - Method in class net.phys2d.raw.SpringJoint
Get the minimum size of the spring, if it compressed beyond this size the string is considered 'broken'.
getNearestPoint(ROVector2f) - Method in class net.phys2d.raw.shapes.ConvexPolygon
Get point on this polygon's hull that is closest to p.
getNearestPoint(ROVector2f) - Method in class net.phys2d.raw.shapes.Polygon
Get point on this polygon's hull that is closest to p.
getNextDistance() - Method in class net.phys2d.raw.collide.PenetrationSweep.ContourWalker
Get the distance of the next vertex which can be a point on one of the borders or a vertex on the polygon's contour.
getNormal(ROVector2f, ROVector2f) - Static method in class net.phys2d.math.MathUtil
Get the normal of a line x y (or edge).
getNormal() - Method in class net.phys2d.raw.CollisionEvent
Get the normal at the collision point
getNormal() - Method in class net.phys2d.raw.Contact
Get the normal at the point of contact
getNumContacts() - Method in class net.phys2d.raw.Arbiter
The number of contacts being resolved by this arbiter
getOffsetX() - Method in class net.phys2d.raw.shapes.AABox
Get the x offset to the body's position of this bounds
getOffsetY() - Method in class net.phys2d.raw.shapes.AABox
Get the y offset to the body's position of this bounds
getOverlappingEdges() - Method in class net.phys2d.raw.collide.EdgeSweep
Get all edges whose projection onto the sweep direction overlap.
getPenetration() - Method in class net.phys2d.raw.collide.PenetrationSweep.ContourWalker
Get the penetration of the current vertex.
getPenetration(float) - Method in class net.phys2d.raw.collide.PenetrationSweep.ContourWalker
Get the penetration of a point on the current edge at the supplied distance.
getPenetrationDepth() - Method in class net.phys2d.raw.CollisionEvent
Get the penetration depth caused by the collision
getPenetrationDepth(Intersection, Intersection, Vector2f, Vector2f[], Vector2f[]) - Static method in class net.phys2d.raw.collide.PenetrationSweep
Given two intersecting polygons, the intersection points and a collision normal, get the maximum penetration distance along the normal.
getPoint() - Method in class net.phys2d.raw.CollisionEvent
Get the point where the collision occured
getPoints(ROVector2f, float) - Method in class net.phys2d.raw.shapes.Box
Get the current positon of a set of points
getPosition() - Method in class net.phys2d.raw.Body
Get the position of this body
getPosition() - Method in class net.phys2d.raw.Contact
Get the position of this contact
getPositionDelta() - Method in class net.phys2d.raw.Body
Get the change in position in the last update
getPositionedLine(ROVector2f, float) - Method in class net.phys2d.raw.shapes.Line
Get a line starting a x,y and ending offset from the current end point.
getQuadSpaces() - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
Sub-divide this space into four seperate sub-spaces dolling out the bodies into each space
getRadius() - Method in class net.phys2d.raw.shapes.Circle
Get the radius of the circle
getRestitution() - Method in class net.phys2d.raw.Body
Get the "restitution" of the body.
getRestitutionConstant() - Method in class net.phys2d.raw.SlideJoint
Get the restitution constant
getRotDamping() - Method in class net.phys2d.raw.Body
Get the rotational damping, similar to normal damping.
getRotateA() - Method in class net.phys2d.raw.AngleJoint
Get the upper angle bound
getRotateA() - Method in class net.phys2d.raw.FixedAngleJoint
Get the angle maintained between the two bodies
getRotateB() - Method in class net.phys2d.raw.AngleJoint
Get the lower angle bound
getRotation() - Method in class net.phys2d.raw.Body
Get the rotation in radians of this body
getSeparation() - Method in class net.phys2d.raw.Contact
Get the seperation between bodies
getShape() - Method in class net.phys2d.raw.Body
Get the shape representing this body
getSize() - Method in class net.phys2d.raw.shapes.Box
Get the size of this box
getSpaces() - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy
Get the spaces dervied in the quad process
getSpringSize() - Method in class net.phys2d.raw.SpringJoint
Get the spring's size.
getStart() - Method in class net.phys2d.raw.shapes.Line
Get the start point of the line
getStretchedSpringConst() - Method in class net.phys2d.raw.SpringJoint
Get the spring constant of Hooke's law, when the spring is streched.
getSurfaceFactor() - Method in class net.phys2d.raw.shapes.Box
 
getSurfaceFactor() - Method in class net.phys2d.raw.shapes.Circle
 
getSurfaceFactor() - Method in class net.phys2d.raw.shapes.ConvexPolygon
 
getSurfaceFactor() - Method in class net.phys2d.raw.shapes.Line
 
getSurfaceFactor() - Method in class net.phys2d.raw.shapes.Polygon
 
getSurfaceFactor() - Method in interface net.phys2d.raw.shapes.Shape
Some factor based on the edges length of the shape
getSweepDir() - Method in class net.phys2d.raw.collide.EdgeSweep
Get the direction of this edgesweep
getTime() - Method in class net.phys2d.raw.CollisionEvent
Get the time of the collision
getTorque() - Method in class net.phys2d.raw.Body
Get the torque applied to this body
getTotalEnergy() - Method in class net.phys2d.raw.World
Get the total energy in the system
getTouching() - Method in class net.phys2d.raw.Body
Get the list of bodies that this body is touching.
getTriangleCount() - Method in class net.phys2d.util.Triangulator
Get a count of the number of triangles produced
getTrianglePoint(int, int) - Method in class net.phys2d.util.Triangulator
Get a point on a specified generated triangle
getUserData() - Method in class net.phys2d.raw.Body
Retrieved the attached object which initially will be null.
getVelocity() - Method in class net.phys2d.raw.Body
Get the velocity of this body
getVelocityDelta() - Method in class net.phys2d.raw.Body
Get the change in velocity in the last update
getVertices(ROVector2f, float) - Method in class net.phys2d.raw.shapes.Line
Return a translated and rotated line.
getVertices() - Method in class net.phys2d.raw.shapes.Polygon
Returns a copy of the list of vertices.
getVertices(ROVector2f, float) - Method in class net.phys2d.raw.shapes.Polygon
Returns a translated and rotated copy of this poly's vertices.
getWidth() - Method in class net.phys2d.raw.shapes.AABox
Get the width of the box
getX() - Method in interface net.phys2d.math.ROVector2f
Get the X component of this vector
getX() - Method in class net.phys2d.math.Vector2f
 
getX1() - Method in class net.phys2d.raw.shapes.Line
Get the x coordinate of the start point
getX1() - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
Get the top left x coordinate of this space
getX2() - Method in class net.phys2d.raw.shapes.Line
Get the x coordinate of the end point
getX2() - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
Get the bottom right x coordinate of this space
getY() - Method in interface net.phys2d.math.ROVector2f
Get the Y component of this vector
getY() - Method in class net.phys2d.math.Vector2f
 
getY1() - Method in class net.phys2d.raw.shapes.Line
Get the y coordinate of the start point
getY1() - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
Get the top left y coordinate of this space
getY2() - Method in class net.phys2d.raw.shapes.Line
Get the y coordinate of the end point
getY2() - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
Get the bottom right y coordinate of this space

H

hasNext() - Method in class net.phys2d.raw.collide.PenetrationSweep.ContourWalker
Check if there are still vertices to walk to.
hasRestingPair() - Method in class net.phys2d.raw.Arbiter
Check if this arbiter has two bodies that are resting
hashCode() - Method in class net.phys2d.raw.Arbiter
 
hashCode() - Method in class net.phys2d.raw.BasicJoint
 
hashCode() - Method in class net.phys2d.raw.Body
 
hashCode() - Method in class net.phys2d.raw.Contact
 
hashCode() - Method in class net.phys2d.raw.ElasticJoint
 
hashCode() - Method in class net.phys2d.raw.FixedJoint
 
hashCode() - Method in class net.phys2d.raw.SpringJoint
 
hashCode() - Method in class net.phys2d.raw.collide.FeaturePair
 

I

INFINITE_MASS - Static variable in class net.phys2d.raw.Body
The maximum value indicating that body won't move
Intersection - class net.phys2d.raw.collide.Intersection.
Class representing a single intersection.
Intersection(int, int, Vector2f, boolean) - Constructor for class net.phys2d.raw.collide.Intersection
Construct an intersection with all its attributes set.
IntersectionGatherer - class net.phys2d.raw.collide.IntersectionGatherer.
This is a very important class for collision detection between polygons for several reasons: First of all, it checks two edges for intersections.
IntersectionGatherer(Vector2f[], Vector2f[]) - Constructor for class net.phys2d.raw.collide.IntersectionGatherer
Construct an IntersectionGatherer for a specific pair of polygons.
indexOf(Arbiter) - Method in class net.phys2d.raw.ArbiterList
Return the index of a particular arbiter in the list
init() - Method in class net.phys2d.raw.Arbiter
Initialise state for this arbiter - this is only done once per pair of bodies.
insert(int, boolean, float) - Method in class net.phys2d.raw.collide.EdgeSweep
Insert a vertex into the sorted list.
intersect(int, int) - Method in class net.phys2d.raw.collide.IntersectionGatherer
Intersect two edges of the two polygons and stores the intersecting lines along with their position.
intersect(Line) - Method in class net.phys2d.raw.shapes.Line
Intersect this line with another
invert() - Method in class net.phys2d.math.Matrix2f
Transpose the invert
isActive() - Method in class net.phys2d.raw.ConstrainingJoint
Check if this contraining joint is currently pulling the bodies back together
isConvex() - Method in class net.phys2d.raw.shapes.ConvexPolygon
Because convexness is checked at construction we can always return true here.
isConvex() - Method in class net.phys2d.raw.shapes.Polygon
Check wether or not the polygon is convex.
isIngoing - Variable in class net.phys2d.raw.collide.Intersection
True iff this is an intersection where polygon A enters B
isMoveable() - Method in class net.phys2d.raw.Body
Check if this body can move
isMoveable() - Method in class net.phys2d.raw.StaticBody
 
isResting() - Method in class net.phys2d.raw.Body
Check if this body has been detected as resting and hence is considered static.
isResting() - Method in class net.phys2d.raw.StaticBody
 
isRotatable() - Method in class net.phys2d.raw.Body
Check if this body can rotate.
isRotatable() - Method in class net.phys2d.raw.StaticBody
 
isStatic() - Method in class net.phys2d.raw.Body
Check if this body is static
isStatic() - Method in class net.phys2d.raw.StaticBody
Check if this body is static
isTouchingStatic(ArrayList) - Method in class net.phys2d.raw.Body
Check if this body is touching a static body directly or indirectly

J

Joint - interface net.phys2d.raw.Joint.
A joint connecting two bodies
JointList - class net.phys2d.raw.JointList.
A typed list of type Joint
JointList() - Constructor for class net.phys2d.raw.JointList
Create an empty list

L

Line - class net.phys2d.raw.shapes.Line.
Implemenation of a bunch of maths functions to do with lines.
Line(float, float, boolean, boolean) - Constructor for class net.phys2d.raw.shapes.Line
Create a new line based on the origin and a single point
Line(float, float) - Constructor for class net.phys2d.raw.shapes.Line
Create a new line based on the origin and a single point
Line(float, float, float, float) - Constructor for class net.phys2d.raw.shapes.Line
Create a new line based on two points
Line(ROVector2f, ROVector2f) - Constructor for class net.phys2d.raw.shapes.Line
Create a new line based on two points
LineBoxCollider - class net.phys2d.raw.collide.LineBoxCollider.
The logic for checking lines against boxes
LineBoxCollider() - Constructor for class net.phys2d.raw.collide.LineBoxCollider
 
LineCircleCollider - class net.phys2d.raw.collide.LineCircleCollider.
Collision routines betwene a circle and a line.
LineCircleCollider() - Constructor for class net.phys2d.raw.collide.LineCircleCollider
 
LineLineCollider - class net.phys2d.raw.collide.LineLineCollider.
Collides two lines with oneanother.
LineLineCollider() - Constructor for class net.phys2d.raw.collide.LineLineCollider
 
LinePolygonCollider - class net.phys2d.raw.collide.LinePolygonCollider.
Collider for a Line and a Convex Polygon.
LinePolygonCollider() - Constructor for class net.phys2d.raw.collide.LinePolygonCollider
 
length() - Method in interface net.phys2d.math.ROVector2f
Get the length of this vector
length() - Method in class net.phys2d.math.Vector2f
 
length() - Method in class net.phys2d.raw.shapes.Line
Find the length of the line
lengthSquared() - Method in interface net.phys2d.math.ROVector2f
The length of the vector squared
lengthSquared() - Method in class net.phys2d.math.Vector2f
The length of the vector squared
lengthSquared() - Method in class net.phys2d.raw.shapes.Line
Find the length of the line squared (cheaper and good for comparisons)
listeners - Variable in class net.phys2d.raw.CollisionSpace
The list of listeners that should be notified of collisions

M

M - Variable in class net.phys2d.raw.DistanceJoint
The matrix for applying impulse
MAX_INTERSECTIONS - Static variable in class net.phys2d.raw.collide.IntersectionGatherer
The size of the intersections array, thus determening the maximum number of intersections that the IntersectionGatherer can accept.
MAX_POINTS - Static variable in class net.phys2d.raw.Arbiter
The maximum number of points of contact
MIN_PAIR_DIST - Static variable in class net.phys2d.raw.collide.IntersectionGatherer
The minimum distance two intersections have to be apart to be considered a pair
MathUtil - class net.phys2d.math.MathUtil.
Simple utility wrapping up a bunch of math operations so that the rest of the code doesn't have to look so cluttered.
Matrix2f - class net.phys2d.math.Matrix2f.
A two dimensional vector
Matrix2f() - Constructor for class net.phys2d.math.Matrix2f
Create an empty matrix
Matrix2f(float) - Constructor for class net.phys2d.math.Matrix2f
Create a matrix with a rotation
Matrix2f(Vector2f, Vector2f) - Constructor for class net.phys2d.math.Matrix2f
Create a matrix
maxDistance - Variable in class net.phys2d.raw.SlideJoint
The maximum distance between the two bodies
minDistance - Variable in class net.phys2d.raw.SlideJoint
The minimum distance between the two bodies
move(float, float) - Method in class net.phys2d.raw.Body
Set the position of this body after it has moved this means the last position will contain the position before this function was called.
move(ROVector2f) - Method in class net.phys2d.raw.shapes.Line
Move this line a certain amount
mul(Matrix2f, ROVector2f) - Static method in class net.phys2d.math.MathUtil
Multiply a matrix by a vector
mul(Matrix2f, Matrix2f) - Static method in class net.phys2d.math.MathUtil
Multiple two matricies

N

NEXT_ID - Static variable in class net.phys2d.raw.ElasticJoint
The next ID to be used
NEXT_ID - Static variable in class net.phys2d.raw.FixedJoint
The next ID to be used
NEXT_ID - Static variable in class net.phys2d.raw.SpringJoint
The next ID to be used
NO_EDGE - Static variable in class net.phys2d.raw.collide.BoxBoxCollider
The identifier indicating no edges collided
negate() - Method in class net.phys2d.math.Vector2f
Negate this vector
net.phys2d.math - package net.phys2d.math
 
net.phys2d.raw - package net.phys2d.raw
 
net.phys2d.raw.collide - package net.phys2d.raw.collide
 
net.phys2d.raw.forcesource - package net.phys2d.raw.forcesource
 
net.phys2d.raw.shapes - package net.phys2d.raw.shapes
 
net.phys2d.raw.strategies - package net.phys2d.raw.strategies
 
net.phys2d.util - package net.phys2d.util
 
next() - Method in class net.phys2d.raw.collide.PenetrationSweep.ContourWalker
Let this walker take a step to the next vertex, which is either the next vertex in the contour or a point on the current edge that crosses one of the sweep area borders.
normalise() - Method in class net.phys2d.math.Vector2f
Normalise the vector

P

PenetrationSweep - class net.phys2d.raw.collide.PenetrationSweep.
This class will, given an intersection pair (an ingoing and outgoing intersection), calculate the penetration depth.
PenetrationSweep(Vector2f, Vector2f, Vector2f, Vector2f) - Constructor for class net.phys2d.raw.collide.PenetrationSweep
Constructs a Penetration Sweep object, with all its attributes set.
PenetrationSweep.ContourWalker - class net.phys2d.raw.collide.PenetrationSweep.ContourWalker.
The contour walker walks over the edges or vertices of a polygon.
PenetrationSweep.ContourWalker(Vector2f[], int, int, boolean) - Constructor for class net.phys2d.raw.collide.PenetrationSweep.ContourWalker
Construct a contourwalker.
Polygon - class net.phys2d.raw.shapes.Polygon.
A polygon represented by a list of its vertices in counterclockwise ordering.
Polygon(ROVector2f[]) - Constructor for class net.phys2d.raw.shapes.Polygon
Construct the polygon with a list of vertices sorted in counterclockwise order.
Polygon() - Constructor for class net.phys2d.raw.shapes.Polygon
A constructor that allows for overloading without using the public constructor.
PolygonBoxCollider - class net.phys2d.raw.collide.PolygonBoxCollider.
Collide a Convex Polygon with a Box.
PolygonBoxCollider() - Constructor for class net.phys2d.raw.collide.PolygonBoxCollider
 
PolygonCircleCollider - class net.phys2d.raw.collide.PolygonCircleCollider.
Collide a circle with a convex polygon
PolygonCircleCollider() - Constructor for class net.phys2d.raw.collide.PolygonCircleCollider
 
PolygonPolygonCollider - class net.phys2d.raw.collide.PolygonPolygonCollider.
Collision detection functions for colliding two polygons.
PolygonPolygonCollider() - Constructor for class net.phys2d.raw.collide.PolygonPolygonCollider
 
populateContacts(Contact[], Vector2f[], Vector2f[], Intersection[]) - Method in class net.phys2d.raw.collide.LinePolygonCollider
Given a list of intersections, calculate the collision information and set the contacts with that information.
populateContacts(Contact[], Vector2f[], Vector2f[], Intersection[][]) - Method in class net.phys2d.raw.collide.PolygonPolygonCollider
Given a list of intersections, calculate the collision information and set the contacts with that information.
position - Variable in class net.phys2d.raw.collide.Intersection
The position of the intersection in world (absolute) coordinates
preStep(float) - Method in class net.phys2d.raw.AngleJoint
 
preStep(float) - Method in class net.phys2d.raw.BasicJoint
Precaculate everything and apply initial impulse before the simulation step takes place
preStep(float) - Method in class net.phys2d.raw.ConstrainingJoint
 
preStep(float) - Method in class net.phys2d.raw.DistanceJoint
 
preStep(float) - Method in class net.phys2d.raw.ElasticJoint
Precaculate everything and apply initial impulse before the simulation step takes place
preStep(float) - Method in class net.phys2d.raw.FixedAngleJoint
 
preStep(float) - Method in class net.phys2d.raw.FixedJoint
Precaculate everything and apply initial impulse before the simulation step takes place
preStep(float) - Method in interface net.phys2d.raw.Joint
Precaculate everything and apply initial impulse before the simulation step takes place
preStep(float) - Method in class net.phys2d.raw.SlideJoint
 
preStep(float) - Method in class net.phys2d.raw.SpringJoint
Precaculate everything and apply initial impulse before the simulation step takes place
preStep(float) - Method in class net.phys2d.raw.SpringyAngleJoint
 
projectOntoUnit(ROVector2f, Vector2f) - Method in interface net.phys2d.math.ROVector2f
Project this vector onto another
projectOntoUnit(ROVector2f, Vector2f) - Method in class net.phys2d.math.Vector2f
Project this vector onto another

Q

QuadSpaceStrategy - class net.phys2d.raw.strategies.QuadSpaceStrategy.
A strategy that divides the space into 4 repeatedly until either the target number of bodies is reached or the a given level of subdivisions is reached.
QuadSpaceStrategy(int, int) - Constructor for class net.phys2d.raw.strategies.QuadSpaceStrategy
Create a new strategy
QuadSpaceStrategy.Space - class net.phys2d.raw.strategies.QuadSpaceStrategy.Space.
A single space within the quad-tree
QuadSpaceStrategy.Space(float, float, float, float) - Constructor for class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
Create a space within the quad tree

R

ROVector2f - interface net.phys2d.math.ROVector2f.
A readonly two dimensional vector
r1 - Variable in class net.phys2d.raw.DistanceJoint
The rotation of the first body
r1 - Variable in class net.phys2d.raw.SlideJoint
The rotation of the first body
r2 - Variable in class net.phys2d.raw.DistanceJoint
The rotation of the second body
r2 - Variable in class net.phys2d.raw.SlideJoint
The rotation of the second body
remove(Body) - Method in class net.phys2d.raw.BodyList
Remove a body from the list
remove(Body) - Method in class net.phys2d.raw.CollisionSpace
Remove a body from the simulation
remove(Joint) - Method in class net.phys2d.raw.JointList
Remove a joint from the list
remove(ForceSource) - Method in class net.phys2d.raw.World
Remove a force source from the world
remove(Joint) - Method in class net.phys2d.raw.World
Remove a joint from the simulation
remove(Body) - Method in class net.phys2d.raw.World
Remove a body from the simulation
removeBit(long) - Method in class net.phys2d.raw.Body
Remove one or more individual bits.
removeBit(long) - Method in class net.phys2d.raw.CollisionSpace
Remove one or more individual bits of the bitmask used to determine which bits are allowed to collide.
removeExcludedBody(Body) - Method in class net.phys2d.raw.Body
Remove a body from the excluded list of this body.
removeListener(CollisionListener) - Method in class net.phys2d.raw.CollisionSpace
Remove a listener from the space
resetBias() - Method in class net.phys2d.raw.Body
Reset the bias velocity (done every time step)
resolve(BodyList, float) - Method in interface net.phys2d.raw.CollisionContext
Resolve and store the collisions betwen each body in the list
resolve(BodyList, float) - Method in class net.phys2d.raw.CollisionSpace
 
restitutionConstant - Variable in class net.phys2d.raw.SlideJoint
The restitution on hitting the end of the joint
reverse() - Method in class net.phys2d.raw.collide.PenetrationSweep.ContourWalker
Reverse the direction of this walker.

S

Shape - interface net.phys2d.raw.shapes.Shape.
A simple shape describing the area covered by a body
SlideJoint - class net.phys2d.raw.SlideJoint.
Create a joint that keeps the distance between two bodies in a given range
SlideJoint(Body, Body, Vector2f, Vector2f, float, float, float) - Constructor for class net.phys2d.raw.SlideJoint
Create a new joint
SpringJoint - class net.phys2d.raw.SpringJoint.
A joint representing a spring.
SpringJoint(Body, Body, ROVector2f, ROVector2f) - Constructor for class net.phys2d.raw.SpringJoint
Create a joint holding two bodies together
SpringyAngleJoint - class net.phys2d.raw.SpringyAngleJoint.
A joint providing a springy resistance between bodies.
SpringyAngleJoint(Body, Body, Vector2f, Vector2f, float, float) - Constructor for class net.phys2d.raw.SpringyAngleJoint
Create a new joint
StaticBody - class net.phys2d.raw.StaticBody.
A body that will not move
StaticBody(Shape) - Constructor for class net.phys2d.raw.StaticBody
Create a static body
StaticBody(String, Shape) - Constructor for class net.phys2d.raw.StaticBody
Create a static body
SwapCollider - class net.phys2d.raw.collide.SwapCollider.
A collider wrapper that swaps the collision result of the collider.
SwapCollider(Collider) - Constructor for class net.phys2d.raw.collide.SwapCollider
Create a collider that swaps the result of the wrapped collider.
sc - Variable in class net.phys2d.raw.DistanceJoint
The scalar
scale(ROVector2f, float) - Static method in class net.phys2d.math.MathUtil
Scale a vector by a given value
scale(float) - Method in class net.phys2d.math.Vector2f
Scale this vector by a value
set(ROVector2f) - Method in class net.phys2d.math.Vector2f
Set the value of this vector
set(float, float) - Method in class net.phys2d.math.Vector2f
Set the values in this vector
set(Body, Body, Vector2f) - Method in class net.phys2d.raw.BasicJoint
Reconfigure this joint
set(Shape, float) - Method in class net.phys2d.raw.Body
Reconfigure the body
set(Body, Body) - Method in class net.phys2d.raw.ElasticJoint
Reconfigure this joint
set(Body, Body) - Method in class net.phys2d.raw.FixedJoint
Reconfigure this joint
set(Body, Body, ROVector2f, ROVector2f) - Method in class net.phys2d.raw.SpringJoint
Reconfigure this joint
set(FeaturePair) - Method in class net.phys2d.raw.collide.FeaturePair
Set the contents of this pair from another
set(ROVector2f, ROVector2f) - Method in class net.phys2d.raw.shapes.Line
Configure the line
setAdded(boolean) - Method in class net.phys2d.raw.Body
Set the added to simulation flag
setBitmask(long) - Method in class net.phys2d.raw.Body
Set the bismask for this shape.
setBitmask(long) - Method in class net.phys2d.raw.CollisionSpace
Set the bitmask used to determine which bits are allowed to collide.
setBlocksInnerEdge(boolean) - Method in class net.phys2d.raw.shapes.Line
Indicate if this line blocks on it's inner edge
setBlocksOuterEdge(boolean) - Method in class net.phys2d.raw.shapes.Line
Indicate if this line blocks on it's outer edge
setBrokenSpringConst(float) - Method in class net.phys2d.raw.SpringJoint
Set the spring constant of Hooke's law, when the spring is out of the bounds determined by min and maxSpringsize.
setCanRest(boolean) - Method in class net.phys2d.raw.Body
Indicate whether this body can come to a resting state.
setCollisionStrategy(BroadCollisionStrategy) - Method in class net.phys2d.raw.CollisionSpace
Set the strategy used to determine the bodies for collision in the broad phase.
setCompressedSpringConst(float) - Method in class net.phys2d.raw.SpringJoint
Set the spring constant of Hooke's law, when the spring is compressed.
setContact(Contact, Intersection, Vector2f[], Vector2f[]) - Method in class net.phys2d.raw.collide.PolygonPolygonCollider
Set a single contact for an intersection.
setContactPair(Contact, Contact, Intersection, Intersection, Vector2f[], Vector2f[]) - Method in class net.phys2d.raw.collide.PolygonPolygonCollider
Calculate the collision normal and penetration depth of one intersection pair and set two contacts.
setDamping(float) - Method in class net.phys2d.raw.Body
Set the friction of the 'air' on this body that slows down the object.
setDamping(float) - Method in class net.phys2d.raw.World
Set the amount of energy retained during collisions across the system.
setEnabled(boolean) - Method in class net.phys2d.raw.Body
Indicates whether this body should be active, collide, move/rotate
setFeature(FeaturePair) - Method in class net.phys2d.raw.Contact
Set the feature identifying the location of the contact
setForce(float, float) - Method in class net.phys2d.raw.Body
Set the force being applied to this body
setFriction(float) - Method in class net.phys2d.raw.Body
Set the friction on the surface of this body
setGravity(float, float) - Method in class net.phys2d.raw.World
Set the gravity applied in the world
setGravityEffected(boolean) - Method in class net.phys2d.raw.Body
Indicate whether this body should be effected by gravity
setIsResting(boolean) - Method in class net.phys2d.raw.Body
Force this body into resting or not resting mode.
setLineEndContact(Contact, Intersection, Vector2f[], Vector2f[]) - Method in class net.phys2d.raw.collide.LinePolygonCollider
Set a contact for an intersection where the colliding line's start- or endpoint is contained in the colliding polygon.
setMaxDistance(float) - Method in class net.phys2d.raw.SlideJoint
Set the maximum allowed distance between the two bodies
setMaxSpringSize(float) - Method in class net.phys2d.raw.SpringJoint
Set the maximum size of the spring, if it stretches beyond this size the string is considered 'broken'.
setMaxVelocity(float, float) - Method in class net.phys2d.raw.Body
Set the maximum velocity this body can reach.
setMinDistance(float) - Method in class net.phys2d.raw.SlideJoint
Set the minimum allowed distance between the two bodies
setMinSpringSize(float) - Method in class net.phys2d.raw.SpringJoint
Set the minimum size of the spring, if it compressed beyond this size the string is considered 'broken'.
setMoveable(boolean) - Method in class net.phys2d.raw.Body
Indicate whether this body should be able to moe.
setNormal(ROVector2f) - Method in class net.phys2d.raw.Contact
Set the normal at the point of contact.
setPosition(float, float) - Method in class net.phys2d.raw.Body
Set the position of this body, this will also set the previous position to the same value.
setPosition(ROVector2f) - Method in class net.phys2d.raw.Contact
Set the position of the contact
setRelaxation(float) - Method in class net.phys2d.raw.AngleJoint
 
setRelaxation(float) - Method in class net.phys2d.raw.BasicJoint
Set the relaxtion value on this joint.
setRelaxation(float) - Method in class net.phys2d.raw.ConstrainingJoint
 
setRelaxation(float) - Method in class net.phys2d.raw.DistanceJoint
 
setRelaxation(float) - Method in class net.phys2d.raw.ElasticJoint
Set the relaxtion value on this joint.
setRelaxation(float) - Method in class net.phys2d.raw.FixedAngleJoint
 
setRelaxation(float) - Method in class net.phys2d.raw.FixedJoint
Set the relaxtion value on this joint.
setRelaxation(float) - Method in interface net.phys2d.raw.Joint
Set the relaxtion value on this joint.
setRelaxation(float) - Method in class net.phys2d.raw.SlideJoint
 
setRelaxation(float) - Method in class net.phys2d.raw.SpringJoint
This function is disabled for this joint because this class allows a far more precise control over the relaxation through the various spring constants and the spring's size.
setRelaxation(float) - Method in class net.phys2d.raw.SpringyAngleJoint
 
setRestitution(float) - Method in class net.phys2d.raw.Body
Set the "restitution" of the body.
setRestitutionConstant(float) - Method in class net.phys2d.raw.SlideJoint
Set the restitution constant
setRotDamping(float) - Method in class net.phys2d.raw.Body
Set the rotational damping, similar to normal damping.
setRotatable(boolean) - Method in class net.phys2d.raw.Body
Indicate whether this body should be able to rotate.
setRotation(float) - Method in class net.phys2d.raw.Body
Set the rotation in radians of this body
setSeparation(float) - Method in class net.phys2d.raw.Contact
Set the separation between bodies
setShape(Shape) - Method in class net.phys2d.raw.Body
Reset the shape of this body
setSpringSize(float) - Method in class net.phys2d.raw.SpringJoint
Set the spring's size.
setStretchedSpringConst(float) - Method in class net.phys2d.raw.SpringJoint
Set the spring constant of Hooke's law, when the spring is streched.
setTorque(float) - Method in class net.phys2d.raw.Body
Set the torque being applied to this body
setUserData(Object) - Method in class net.phys2d.raw.Body
Attach an object to this Body.
sign(float) - Static method in class net.phys2d.math.MathUtil
Check the sign of a value
size() - Method in class net.phys2d.raw.ArbiterList
Get the size of the list
size() - Method in class net.phys2d.raw.BodyList
Get the number of elements in the list
size() - Method in class net.phys2d.raw.JointList
Get the size of the list
step() - Method in class net.phys2d.raw.World
Step the simulation.
step(float) - Method in class net.phys2d.raw.World
Step the simulation.
sub(ROVector2f, ROVector2f) - Static method in class net.phys2d.math.MathUtil
Subtract one vector from another
sub(ROVector2f) - Method in class net.phys2d.math.Vector2f
Subtract a vector from this vector

T

Triangulator - class net.phys2d.util.Triangulator.
Triangulates a polygon into triangles - duh.
Triangulator() - Constructor for class net.phys2d.util.Triangulator
Create a new triangulator
toString() - Method in class net.phys2d.math.Vector2f
 
toString() - Method in class net.phys2d.raw.Body
 
toString() - Method in class net.phys2d.raw.BodyList
 
toString() - Method in class net.phys2d.raw.CollisionEvent
 
toString() - Method in class net.phys2d.raw.Contact
 
toString() - Method in class net.phys2d.raw.collide.FeaturePair
 
toString() - Method in class net.phys2d.raw.shapes.AABox
 
toString() - Method in class net.phys2d.raw.shapes.Line
 
toString() - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
 
totalTime - Variable in class net.phys2d.raw.CollisionSpace
The total time passed
touches(float, float, AABox, float, float) - Method in class net.phys2d.raw.shapes.AABox
Check if this box touches another
touches(float, float, Circle, float, float) - Method in class net.phys2d.raw.shapes.Circle
Check if this circle touches another
touches(AABox, float, float) - Method in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
Check if this space touches a box
transpose() - Method in class net.phys2d.math.Matrix2f
Transpose the matrix
triangulate() - Method in class net.phys2d.util.Triangulator
Cause the triangulator to split the polygon

V

Vector2f - class net.phys2d.math.Vector2f.
A two dimensional vector
Vector2f() - Constructor for class net.phys2d.math.Vector2f
Create an empty vector
Vector2f(ROVector2f) - Constructor for class net.phys2d.math.Vector2f
Create a new vector based on another
Vector2f(float, float) - Constructor for class net.phys2d.math.Vector2f
Create a new vector
validateVelocity() - Method in class net.phys2d.raw.Body
Validate the velocity value thats just been applied.
vertices - Variable in class net.phys2d.raw.shapes.Polygon
The vertices of this polygon in counterclockwise order

W

WindSource - class net.phys2d.raw.forcesource.WindSource.
A source to apply wind to all bodies in a given direction
WindSource(float, float, float) - Constructor for class net.phys2d.raw.forcesource.WindSource
Create a new source
World - class net.phys2d.raw.World.
The physics model in which the bodies exist.
World(Vector2f, int) - Constructor for class net.phys2d.raw.World
Create a new physics model World
World(Vector2f, int, BroadCollisionStrategy) - Constructor for class net.phys2d.raw.World
Create a new physics model World

X

x - Variable in class net.phys2d.math.Vector2f
The x component of this vector
x1 - Variable in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
The top left x coordinate
x2 - Variable in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
The bottom right x coordinate

Y

y - Variable in class net.phys2d.math.Vector2f
The y component of this vector
y1 - Variable in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
The top left y coordinate
y2 - Variable in class net.phys2d.raw.strategies.QuadSpaceStrategy.Space
The bottom right y coordinate

A B C D E F G H I J L M N P Q R S T V W X Y