Overview
Package
Class
Tree
Deprecated
Index
Help
Emini Physics Engine 1.3.5a API Documentation
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
J
L
M
N
P
R
S
T
U
V
W
X
Y
A
ACCELERATION
- Static variable in class at.emini.physics2D.
Script
Element Type acceleration
add(FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Adds a vector.
add(FXVector, float)
- Method in class at.emini.physics2D.util.
FXVector
Adds a vector after scaling it.
add2FX(FXVector, float)
- Method in class at.emini.physics2D.util.
FXVector
Adds a vector after scaling it (2FX).
ADD_MATRIX_DECIMAL
- Static variable in class at.emini.physics2D.util.
FXUtil
Additional matrix shift factor.
addBody(Body)
- Method in class at.emini.physics2D.
World
Adds a body to the world.
addCollisionLayer(int)
- Method in class at.emini.physics2D.
Body
Add a collision layer to the body.
addConstraint(Constraint)
- Method in class at.emini.physics2D.
World
Adds a constraint to the world.
addContact(Contact)
- Method in class at.emini.physics2D.
Body
Adds a new contact.
addContact(Contact)
- Method in class at.emini.physics2D.
Landscape
Adds a new contact.
addElement(int, int, int, int)
- Method in class at.emini.physics2D.
Script
Adds a new element to the script.
addElement(int, int, int)
- Method in class at.emini.physics2D.
Script
Adds a new element to the script (only rotational elements).
addElement(Script.ScriptElement)
- Method in class at.emini.physics2D.
Script
Adds a script element directly.
addEvent(Event)
- Method in class at.emini.physics2D.
World
Adds an event definition to the world.
addExternalForce(ExternalForce)
- Method in class at.emini.physics2D.
World
Adds an external force to the world.
addFX(float, float, float)
- Method in class at.emini.physics2D.util.
FXVector
Adds a vector (given as two coordinates) after scaling it.
addParticleEmitter(ParticleEmitter)
- Method in class at.emini.physics2D.
World
Adds a particle emitter to the world.
addScript(Script)
- Method in class at.emini.physics2D.
World
Adds a script definition to the world.
addScriptBody(int, Body)
- Method in class at.emini.physics2D.
World
Adds a body for script execution.
addSegment(FXVector, FXVector, short)
- Method in class at.emini.physics2D.
Landscape
Adds a segment to the landscape.
addWorld(World)
- Method in class at.emini.physics2D.
World
Adds a a complete world.
ANGLE
- Static variable in class at.emini.physics2D.
Script
Element Type angle
angleDiffFX(float, float)
- Static method in class at.emini.physics2D.util.
FXUtil
Returns the difference of two angles [-PI..PI].
angleInDegrees2FX(float)
- Static method in class at.emini.physics2D.util.
FXUtil
Returns the angle in degrees
angularVelocity2FX()
- Method in class at.emini.physics2D.
Body
Gets the current angular velocity.
angularVelocity2FX(float)
- Method in class at.emini.physics2D.
Body
Sets the angular velocity.
applyAcceleration(FXVector, float)
- Method in class at.emini.physics2D.
Body
Applies acceleration to the body.
applyAcceleration(FXVector, float)
- Method in class at.emini.physics2D.
ParticleEmitter
APplies gravity to particles.
applyAccumImpulses()
- Method in class at.emini.physics2D.
Contact
Applies the accumulated impulses.
applyForce(FXVector, float)
- Method in class at.emini.physics2D.
Body
Applies forces to the body.
applyForce(Body[], int, float)
- Method in interface at.emini.physics2D.
ExternalForce
Method to apply the external force.
applyMomentum(FXVector)
- Method in class at.emini.physics2D.
Body
Applies an impulse to the body center.
applyMomentum(float)
- Method in interface at.emini.physics2D.
Constraint
Applies the momentum to the body/bodies.
applyMomentum()
- Method in class at.emini.physics2D.
Contact
Applies the momentum of the collision.
applyMomentum(float)
- Method in class at.emini.physics2D.
Joint
Applies the momentum.
applyMomentum(float)
- Method in class at.emini.physics2D.
Motor
Applies the impulse of the motor.
applyMomentum(float)
- Method in class at.emini.physics2D.
Spring
Applies the momentum of the constraint.
applyMomentumAt(FXVector, FXVector)
- Method in class at.emini.physics2D.
Body
Applies an impulse at a position.
applyMomentumPositionCorrectionFX()
- Method in class at.emini.physics2D.
Contact
Applies the position correction to the involved bodies.
applyToBody(Body, World)
- Method in class at.emini.physics2D.
Script
Applies the script to a body.
applyTorque(float)
- Method in class at.emini.physics2D.
Body
Applies torque to the body.
applyVirtualMomentumAt(FXVector, FXVector)
- Method in class at.emini.physics2D.
Body
Applies a virtual impulse at a position.
assign(FXMatrix)
- Method in class at.emini.physics2D.util.
FXMatrix
assign(FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Copies the values of another vector.
assignDiff(FXVector, FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Assigns the difference vector between two points/vectors.
assignFX(float, float)
- Method in class at.emini.physics2D.util.
FXVector
Assign values to the vector.
assignScaledFX(FXVector, float)
- Method in class at.emini.physics2D.util.
FXVector
Copies and scaled the values of another vector.
at.emini.physics2D
- package at.emini.physics2D
The main classes for creating a physical environment and simulate it.
at.emini.physics2D.util
- package at.emini.physics2D.util
This package contains utility classes.
B
Body
- Class in
at.emini.physics2D
The Body class represents the physical state of a body.
Body(int, int, Shape, boolean)
- Constructor for class at.emini.physics2D.
Body
Constructor.
Body(FXVector, Shape, boolean)
- Constructor for class at.emini.physics2D.
Body
Constructor.
Body(Body)
- Constructor for class at.emini.physics2D.
Body
Copy constructor.
body()
- Method in class at.emini.physics2D.
Motor
Gets the body, that the motor applies to.
body1()
- Method in class at.emini.physics2D.
Contact
Gets the first body.
body2()
- Method in class at.emini.physics2D.
Contact
Gets the second body.
bodyIndexOf(int)
- Method in class at.emini.physics2D.
World
Gets the index of the body.
C
calcDistance()
- Method in class at.emini.physics2D.
Spring
Calculates the default distance.
calculateAABB(float)
- Method in class at.emini.physics2D.
Body
Recalculates the AABB.
canCollide()
- Method in class at.emini.physics2D.
ParticleEmitter
canRotate()
- Method in class at.emini.physics2D.
Body
Checks if the body can rotate.
checkCollisions()
- Method in class at.emini.physics2D.
World
Checks all bodies for collisions.
checkEvent(World, PhysicsEventListener)
- Method in class at.emini.physics2D.
Event
Checks if the event is currently active.
checkEvents(World, PhysicsEventListener)
- Method in class at.emini.physics2D.
EventSet
Checks all events for triggering.
clear()
- Method in class at.emini.physics2D.
Contact
Sets up the contact for reuse (same bodies).
clearAll()
- Method in class at.emini.physics2D.
Contact
Sets up the contact for reuse (different bodies).
close()
- Method in class at.emini.physics2D.util.
PhysicsFileReader
Closes the stream.
collide(FXVector, int)
- Method in class at.emini.physics2D.
ParticleEmitter
Performs collision for a given particle.
collideParticles(ParticleEmitter)
- Method in class at.emini.physics2D.
Landscape
collideParticles()
- Method in class at.emini.physics2D.
World
Collision
- Class in
at.emini.physics2D
Detects collisions of two bodies.
Collision()
- Constructor for class at.emini.physics2D.
Collision
collisionCheckBody(World, Body)
- Method in class at.emini.physics2D.
Landscape
Checks collision of the landscape and a body.
concernsBody(Body)
- Method in interface at.emini.physics2D.
Constraint
Checks whether the constraint applies to a body.
concernsBody(Body)
- Method in class at.emini.physics2D.
Contact
Checks is the contact applies to a body.
concernsBody(Body)
- Method in class at.emini.physics2D.
Joint
Checks if the joint applies to a body.
concernsBody(Body)
- Method in class at.emini.physics2D.
Motor
Checks if the constraint applies to a body.
concernsBody(Body)
- Method in class at.emini.physics2D.
Spring
Checks if the spring is applied to a body.
Constraint
- Interface in
at.emini.physics2D
Interface for additional constraints.
Contact
- Class in
at.emini.physics2D
The Contact class represents a contact between two bodies.
Contact(FXVector, Body, int, Body, int)
- Constructor for class at.emini.physics2D.
Contact
Constructor.
Contact(FXVector, FXVector, Body, Body)
- Constructor for class at.emini.physics2D.
Contact
Constructor using two absolute points.
copy()
- Method in class at.emini.physics2D.
Body
Copy method.
copy(Body[])
- Method in interface at.emini.physics2D.
Constraint
Copies the constraint.
copy(Body[])
- Method in class at.emini.physics2D.
Event
Copies the event.
copy()
- Method in class at.emini.physics2D.
EventSet
Copies the event set.
copy(Body[])
- Method in interface at.emini.physics2D.
ExternalForce
Copy method for the force.
copy(Body[])
- Method in class at.emini.physics2D.
Joint
Copy method.
copy()
- Method in class at.emini.physics2D.
Landscape
Copy method.
copy(Body[])
- Method in class at.emini.physics2D.
Motor
Copies the motor constraint.
copy(Body[])
- Method in class at.emini.physics2D.
ParticleEmitter
Copies the particle emitter.
copy()
- Method in class at.emini.physics2D.
Script
Copy method for the script object
copy()
- Method in class at.emini.physics2D.
ShapeSet
Copies the shape set.
copy(Body[])
- Method in class at.emini.physics2D.
Spring
Copies the spring.
copy()
- Method in interface at.emini.physics2D.
UserData
Copy method for the user data
correctCentroid()
- Method in class at.emini.physics2D.
Shape
Centers the shape.
correctShapeId(int)
- Method in class at.emini.physics2D.
ShapeSet
Corrects the shape id for the shape at a given index This can be required if the vector was meddled with (like deleting, inserting, etc)
createBodyEvent(Body, Shape, int, int, int, int, int)
- Static method in class at.emini.physics2D.
Event
Creates a body event.
createBodySensorEvent(Body, Shape, Body)
- Static method in class at.emini.physics2D.
Event
Creates an area collide event.
createCircle(int)
- Static method in class at.emini.physics2D.
Shape
Creates a circle shape.
createCollisionRelativeEvent(Body, Shape, int, int)
- Static method in class at.emini.physics2D.
Event
Creates a relative collision event.
createConstraintEvent(Constraint, int, int, int)
- Static method in class at.emini.physics2D.
Event
Creates a constraint event.
createNewUserData(String, int)
- Method in interface at.emini.physics2D.
UserData
Fills the userdata object The string is read from the world file and passed to this method to create the user data object.
createParticle(int, float)
- Method in class at.emini.physics2D.
ParticleEmitter
Creates the parameters for the particle at index.
createParticles(float)
- Method in class at.emini.physics2D.
ParticleEmitter
Creates the required number of new particles in the simulation.
createRectangle(int, int)
- Static method in class at.emini.physics2D.
Shape
Creates a rectangle shape.
createRegularPolygon(int, int)
- Static method in class at.emini.physics2D.
Shape
Creates a regular polygon shape.
createRotationMatrix(float)
- Static method in class at.emini.physics2D.util.
FXMatrix
Creates a 2D rotation matrix.
crossFX(FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Computes the cross product of two vectors.
crossScalar2FX(float)
- Method in class at.emini.physics2D.util.
FXVector
Computes cross product with a scalar (2FX).
crossScalarFX(float)
- Method in class at.emini.physics2D.util.
FXVector
Computes cross product with a scalar (FX).
D
DECIMAL
- Static variable in class at.emini.physics2D.util.
FXUtil
Shift Factor for single shifted numbers.
DECIMAL2
- Static variable in class at.emini.physics2D.util.
FXUtil
Shift Factor for double shifted numbers.
detectCollision(Body, Body)
- Static method in class at.emini.physics2D.
Collision
Detects contacts between two bodies.
detectCollision(Body, int, Body, int)
- Static method in class at.emini.physics2D.
Collision
detectCollision(Body, Landscape, int)
- Static method in class at.emini.physics2D.
Collision
Detects contacts between a body and a landscape segment.
detectCollision(Body, int, Landscape, int)
- Static method in class at.emini.physics2D.
Collision
detectCollision(Landscape, int, float, float, float, float)
- Static method in class at.emini.physics2D.
Collision
Detects collision of a landscape segment and a particle.
detectCollision(Body, float, float)
- Static method in class at.emini.physics2D.
Collision
Detects contacts between a body and a particle.
distanceFX(FXVector, FXVector, FXVector, float)
- Method in class at.emini.physics2D.util.
FXVector
Calculates the distance to a line (supplying normal and distance).
distanceFX(FXVector, FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Calculates the distance to a line.
distFX(FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Distance to another vector.
divideBy(int)
- Method in class at.emini.physics2D.util.
FXVector
Divides the vector.
divideByFX(float)
- Method in class at.emini.physics2D.util.
FXVector
Divides the vector (FX).
dividedByFX(float)
- Method in class at.emini.physics2D.util.
FXVector
Creates a copy divided by a factor (FX).
divideFX(float, float)
- Static method in class at.emini.physics2D.util.
FXUtil
Division of two fixpoint values.
dotFX(FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Computes the dot product of two vectors.
E
elementEndPoints()
- Method in class at.emini.physics2D.
Landscape
Gets the end points of the segments.
elementStartPoints()
- Method in class at.emini.physics2D.
Landscape
Gets the starting points of the segments.
emitAxesFixed()
- Method in class at.emini.physics2D.
ParticleEmitter
endPoint(int)
- Method in class at.emini.physics2D.
Landscape
Gets the end vector of a segment.
equals(Body)
- Method in class at.emini.physics2D.
Body
Compares two bodies.
equals(Constraint)
- Method in interface at.emini.physics2D.
Constraint
Checks for equality of two constraints.
equals(Constraint)
- Method in class at.emini.physics2D.
Joint
Checks for equality of two constraints.
equals(Constraint)
- Method in class at.emini.physics2D.
Motor
Checks for equality of two constraints.
equals(Constraint)
- Method in class at.emini.physics2D.
Spring
Checks for equality of two constraints.
equals(Object)
- Method in class at.emini.physics2D.util.
FXVector
Equals operator for vectors.
Event
- Class in
at.emini.physics2D
The Event class represents a generic event that can be triggered in the world.
Event(Body, Shape, Constraint, int, float, float, float, float, Object)
- Constructor for class at.emini.physics2D.
Event
Constructor.
Event(Event, Body[])
- Constructor for class at.emini.physics2D.
Event
Copy Constructor.
Event(int)
- Constructor for class at.emini.physics2D.
Event
Empty Constructor.
EventSet
- Class in
at.emini.physics2D
The event set manages the events within a world.
EventSet()
- Constructor for class at.emini.physics2D.
EventSet
Default Constructor.
EventSet(EventSet)
- Constructor for class at.emini.physics2D.
EventSet
Copy constructor.
eventTriggered(Event, Object)
- Method in interface at.emini.physics2D.
PhysicsEventListener
Callback method for event triggers.
executeScript(int, World)
- Method in class at.emini.physics2D.
Script
Executes the script.
ExternalForce
- Interface in
at.emini.physics2D
Represents an external force applying to one or more bodies.
F
FACE_LEFT
- Static variable in class at.emini.physics2D.
Landscape
Face type left.
FACE_NONE
- Static variable in class at.emini.physics2D.
Landscape
Face type none.
FACE_RIGHT
- Static variable in class at.emini.physics2D.
Landscape
Face type right.
fastLengthFX(float, float)
- Static method in class at.emini.physics2D.util.
FXVector
Calculates the length of a vector, supplied as x and y coordinates (fast).
fastLengthFX()
- Method in class at.emini.physics2D.util.
FXVector
Calculates the length of the vector (fast).
fillVertices(FXVector[], Contact, int)
- Method in class at.emini.physics2D.
Landscape
findBody(Body)
- Method in class at.emini.physics2D.
World
Find reference to the body
findBodyAt(float, float)
- Method in class at.emini.physics2D.
World
Finds the body at position x,y.
findBodyById(int)
- Method in class at.emini.physics2D.
World
Find reference to the body
findConstraint(Constraint)
- Method in class at.emini.physics2D.
World
Gets reference to the constraint.
forceUpdate(float)
- Method in class at.emini.physics2D.
Body
Forces an update of body internals.
fromFX(float)
- Static method in class at.emini.physics2D.util.
FXUtil
Converts a fixpoint value to integer
FXMatrix
- Class in
at.emini.physics2D.util
The FXMatrix class represents a 2x2 matrix.
FXMatrix()
- Constructor for class at.emini.physics2D.util.
FXMatrix
Empty constructor.
FXMatrix(int)
- Constructor for class at.emini.physics2D.util.
FXMatrix
FXMatrix(FXMatrix)
- Constructor for class at.emini.physics2D.util.
FXMatrix
Copy constructor.
FXUtil
- Class in
at.emini.physics2D.util
Utilities for fixpoint math.
FXUtil()
- Constructor for class at.emini.physics2D.util.
FXUtil
FXVector
- Class in
at.emini.physics2D.util
The FXVector class represents a 2D Vector. 2D Vector uses fixpoint-math.
FXVector()
- Constructor for class at.emini.physics2D.util.
FXVector
Empty Constructor.
FXVector(float, float)
- Constructor for class at.emini.physics2D.util.
FXVector
Constructor with x and y coordinates.
FXVector(FXVector)
- Constructor for class at.emini.physics2D.util.
FXVector
Copy constructor.
G
getAABBMaxXFX()
- Method in class at.emini.physics2D.
Body
Gets the right side of the AABB.
getAABBMaxYFX()
- Method in class at.emini.physics2D.
Body
Gets the bottom of the AABB.
getAABBMinXFX()
- Method in class at.emini.physics2D.
Body
Gets the left side of the AABB.
getAABBMinYFX()
- Method in class at.emini.physics2D.
Body
Gets the top of the AABB.
getAbsoluePoint(FXVector)
- Method in class at.emini.physics2D.
Body
Converts a relative position to absolute coordinates.
getAbsoluePoint(FXVector, FXVector)
- Method in class at.emini.physics2D.
Body
Converts a relative position to absolute coordinates.
getAreaEndFX()
- Method in class at.emini.physics2D.
World
Gets the end position of the area simulation.
getAreaFX()
- Method in class at.emini.physics2D.
Shape
Gets the area of the shape (FX).
getAreaStartFX()
- Method in class at.emini.physics2D.
World
Gets the start position of the area simulation.
getAvgLifeTimeDeviationFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getAvgLifeTimeFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getAxes()
- Method in class at.emini.physics2D.
Body
Calculates the projection axes in absolute coordinates.
getBodies()
- Method in class at.emini.physics2D.
World
Gets all bodies.
getBody()
- Method in class at.emini.physics2D.
Landscape
Gets the dummy body.
getBody1()
- Method in class at.emini.physics2D.
Joint
Gets the Body 1
getBody1()
- Method in class at.emini.physics2D.
Spring
Gets the first body.
getBody2()
- Method in class at.emini.physics2D.
Joint
Gets the Body 2
getBody2()
- Method in class at.emini.physics2D.
Spring
Gets the second body.
getBodyCount()
- Method in class at.emini.physics2D.
World
Gets the number of bodies.
getBodyEndIndex()
- Method in class at.emini.physics2D.
World
Gets the end index of the currently active bodies.
getBodyFilter()
- Method in class at.emini.physics2D.
Event
Gets the body filter.
getBodyStartIndex()
- Method in class at.emini.physics2D.
World
Gets the start index of the currently active bodies.
getBodyTotalEnergyFX(Body)
- Method in class at.emini.physics2D.
World
Get the body energy.
getBoundingRadius()
- Method in class at.emini.physics2D.
Shape
Gets the bounding radius.
getBoundingRadiusFX()
- Method in class at.emini.physics2D.
Shape
Gets the bounding radius (FX).
getBoundingRadiusSquare()
- Method in class at.emini.physics2D.
Shape
Gets the square of the bounding radius.
getCoefficientFX()
- Method in class at.emini.physics2D.
Spring
Gets the spring coefficient.
getColissionBitFlag()
- Method in class at.emini.physics2D.
Body
Gets the complete collision flag.
getConstraintCount()
- Method in class at.emini.physics2D.
World
Gets the number of constraints.
getConstraintFilter()
- Method in class at.emini.physics2D.
Event
Gets the constraint filter.
getConstraintIterations()
- Method in class at.emini.physics2D.
World
Returns constraint iteration number.
getConstraints()
- Method in class at.emini.physics2D.
World
Gets all constraints.
getContact(Body)
- Method in class at.emini.physics2D.
Body
Find a contact with another body.
getContact(int, Body, int)
- Method in class at.emini.physics2D.
Body
Find a contact with another body.
getContact(Body, int, int)
- Method in class at.emini.physics2D.
Landscape
Finds a contact of a segment with a body.
getContactCount()
- Method in class at.emini.physics2D.
World
Gets the number of current contacts.
getContactPosition1()
- Method in class at.emini.physics2D.
Contact
Gets contact position of the first contact point.
getContactPosition2()
- Method in class at.emini.physics2D.
Contact
Gets contact position of the second contact point.
getContacts()
- Method in class at.emini.physics2D.
Body
Gets the current contacts.
getContacts()
- Method in class at.emini.physics2D.
Landscape
Gets all current contacts.
getContacts()
- Method in class at.emini.physics2D.
World
Gets all current contacts.
getContactsForBody(Body)
- Method in class at.emini.physics2D.
World
Gets all current contacts for a body.
getCorners()
- Method in class at.emini.physics2D.
Shape
Gets the shape vertices.
getCreationRateDeviationFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getCreationRateFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getDampingFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getDampingLateralFX()
- Method in class at.emini.physics2D.
World
Gets the lateral damping factor.
getDampingRotationalFX()
- Method in class at.emini.physics2D.
World
Gets the rotational damping factor.
getDepth1FX()
- Method in class at.emini.physics2D.
Contact
Gets the penetration depth first contact point.
getDepth2FX()
- Method in class at.emini.physics2D.
Contact
Gets the penetration depth second contact point.
getDistance()
- Method in class at.emini.physics2D.
Spring
Returns the default distance of the spring.
getDistanceFX()
- Method in class at.emini.physics2D.
Spring
Returns the default distance of the spring (FX).
getElasticityFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getElasticityFX()
- Method in class at.emini.physics2D.
Shape
Gets the elasticity.
getEmitAngle2FX()
- Method in class at.emini.physics2D.
ParticleEmitter
getEmitAngleDeviation2FX()
- Method in class at.emini.physics2D.
ParticleEmitter
getEmitSpeedDeviationFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getEmitSpeedFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getEmitter()
- Method in class at.emini.physics2D.
ParticleEmitter
getEvents()
- Method in class at.emini.physics2D.
EventSet
Gets the complete list of events.
getEvents()
- Method in class at.emini.physics2D.
World
Gets a vector containing all events.
getFrictionFX()
- Method in class at.emini.physics2D.
Shape
Gets the friction (FX).
getGravity()
- Method in class at.emini.physics2D.
World
Gets the gravity vector.
getGravityEffectFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getId()
- Method in class at.emini.physics2D.
Body
Gets the id.
getId()
- Method in class at.emini.physics2D.
Shape
Get the shape id.
getIdentifier()
- Method in class at.emini.physics2D.
Event
Gets the event identifier.
getImpulseContact1FX()
- Method in class at.emini.physics2D.
Contact
Gets the last acting impulse of the contact (position 1).
getImpulseContact2FX()
- Method in class at.emini.physics2D.
Contact
Gets the last acting impulse of the contact (position 2).
getImpulseFX()
- Method in interface at.emini.physics2D.
Constraint
Gets the virtual work of the constraint.
getImpulseFX()
- Method in class at.emini.physics2D.
Joint
Gets the last impulse of teh joint.
getImpulseFX()
- Method in class at.emini.physics2D.
Motor
Gets the last impulse.
getImpulseFX()
- Method in class at.emini.physics2D.
Spring
Gets the last applied impulse.
getInverseTimestepFX()
- Method in class at.emini.physics2D.
World
Gets the inverse of the timestep.
getInvInertia2FX()
- Method in class at.emini.physics2D.
Body
Gets the inverted inertia of the body.
getInvMass2FX()
- Method in class at.emini.physics2D.
Body
Gets the inverted mass of the body.
getLandscape()
- Method in class at.emini.physics2D.
World
Gets the landscape object.
getLifeTimes()
- Method in class at.emini.physics2D.
ParticleEmitter
getMass()
- Method in class at.emini.physics2D.
Shape
Gets the mass.
getMassFX()
- Method in class at.emini.physics2D.
Shape
Gets the mass (FX).
getMaxForceFX()
- Method in class at.emini.physics2D.
Motor
Gets the maximum force.
getMaxParticleCount()
- Method in class at.emini.physics2D.
ParticleEmitter
getNormal()
- Method in class at.emini.physics2D.
Contact
Gets the contact normal.
getParticleEmitters()
- Method in class at.emini.physics2D.
World
Gets a vector containing all particle emitters.
getPoint1()
- Method in class at.emini.physics2D.
Joint
Gets the absolute joint position (from body1).
getPoint1()
- Method in class at.emini.physics2D.
Spring
Gets the absolute position of point 1.
getPoint1(FXVector)
- Method in class at.emini.physics2D.
Spring
Gets the absolute position of point 1.
getPoint2()
- Method in class at.emini.physics2D.
Joint
Gets the absolute joint position (from body2).
getPoint2()
- Method in class at.emini.physics2D.
Spring
Gets the absolute position of point 2.
getPoint2(FXVector)
- Method in class at.emini.physics2D.
Spring
Gets the absolute position of point 2.
getPositionConstraintIterations()
- Method in class at.emini.physics2D.
World
Returns position constraint iteration number.
getRawPoint1()
- Method in class at.emini.physics2D.
Joint
Gets the relative joint position (from body1).
getRawPoint1()
- Method in class at.emini.physics2D.
Spring
Gets the relative position of point 1.
getRawPoint2()
- Method in class at.emini.physics2D.
Joint
Gets the relative joint position (from body2).
getRawPoint2()
- Method in class at.emini.physics2D.
Spring
Gets the relative position of point 2.
getRelativePoint(FXVector)
- Method in class at.emini.physics2D.
Body
Converts an absolute position to relative coordinates.
getRelEmitterPos1()
- Method in class at.emini.physics2D.
ParticleEmitter
getRelEmitterPos2()
- Method in class at.emini.physics2D.
ParticleEmitter
getRotationMatrix()
- Method in class at.emini.physics2D.
Body
Gets the rotation matrix.
getScript(int)
- Method in class at.emini.physics2D.
World
Gets a script.
getScriptBodies()
- Method in class at.emini.physics2D.
World
Gets a list of all bodies that scripts are applied to.
getScriptBodyCount()
- Method in class at.emini.physics2D.
World
Gets the number of bodies that scripts are applied to.
getScriptCount()
- Method in class at.emini.physics2D.
World
Gets the number of scripts.
getScriptIndices()
- Method in class at.emini.physics2D.
World
Gets a list of all applied script indices.
getScripts()
- Method in class at.emini.physics2D.
World
Gets all scripts.
getShape()
- Method in class at.emini.physics2D.
Landscape
Gets the shape.
getShape(int)
- Method in class at.emini.physics2D.
MultiShape
Returns the subshape at a given index.
getShapeCount()
- Method in class at.emini.physics2D.
MultiShape
Returns the number of subshapes.
getShapeFilter()
- Method in class at.emini.physics2D.
Event
Gets the shape filter.
getShapes()
- Method in class at.emini.physics2D.
ShapeSet
Gets the vector of all shapes.
getShapeSet()
- Method in class at.emini.physics2D.
World
Gets the shape set.
getTargetAFX()
- Method in class at.emini.physics2D.
Motor
gets the target X.
getTargetBFX()
- Method in class at.emini.physics2D.
Motor
gets the target Y.
getTargetObject()
- Method in class at.emini.physics2D.
Event
Return the target object.
getTimestepFX()
- Method in class at.emini.physics2D.
World
Gets the timestep.
getTriggerOnce()
- Method in class at.emini.physics2D.
Event
Gets the trigger once flag.
getUserData()
- Method in class at.emini.physics2D.
Body
Get user data.
getUserData()
- Method in interface at.emini.physics2D.
Constraint
getUserData()
- Method in class at.emini.physics2D.
Event
Get user data.
getUserData()
- Method in class at.emini.physics2D.
Joint
Get user data.
getUserData()
- Method in class at.emini.physics2D.
Motor
Get user data.
getUserData()
- Method in class at.emini.physics2D.
ParticleEmitter
Get user data.
getUserData()
- Method in class at.emini.physics2D.
Shape
Get user data.
getUserData()
- Method in class at.emini.physics2D.
Spring
Get user data.
getUserData()
- Method in class at.emini.physics2D.
World
Get user data.
getVelocity(FXVector)
- Method in class at.emini.physics2D.
Body
Calculates the velocity of a point of the body.
getVelocity(FXVector, FXVector)
- Method in class at.emini.physics2D.
Body
Calculates the velocity of a point (reuse object).
getVersion()
- Method in class at.emini.physics2D.util.
PhysicsFileReader
Gets the version of the data stream.
getVertices()
- Method in class at.emini.physics2D.
Body
Calculates the current vertices in absolute coordinates.
getVerticesFX(FXVector, FXMatrix, FXVector[])
- Method in class at.emini.physics2D.
Shape
Computes rotated and shifted vertices.
getVirtualVelocity(FXVector)
- Method in class at.emini.physics2D.
Body
Calculates the virtual velocity of a point of the body.
getVirtualVelocity(FXVector, FXVector)
- Method in class at.emini.physics2D.
Body
Calculates the virtual velocity of a point (reuse object).
getXPosFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getXPrevPosFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getYPosFX()
- Method in class at.emini.physics2D.
ParticleEmitter
getYPrevPosFX()
- Method in class at.emini.physics2D.
ParticleEmitter
I
indexOf(Constraint)
- Method in class at.emini.physics2D.
World
Gets the index of the constraint.
initCollision()
- Method in class at.emini.physics2D.
Landscape
Initializes the collision process.
initShapeInternals()
- Method in class at.emini.physics2D.
Body
Caches collision info from the shape.
initShapeMembers(Vector)
- Method in class at.emini.physics2D.
MultiShape
Sets up the shape vectors.
integrateParticles(float)
- Method in class at.emini.physics2D.
ParticleEmitter
Moves all particles.
integrateVelocity(float)
- Method in class at.emini.physics2D.
Body
Integrates the velocity.
integrateVirtualVelocity(float, FXVector)
- Method in class at.emini.physics2D.
Body
intersect(FXVector, FXVector, FXVector, FXVector, FXVector)
- Static method in class at.emini.physics2D.util.
FXVector
Intersects two lines.
invert()
- Method in class at.emini.physics2D.util.
FXMatrix
Inverts the matrix.
isAffectedByGravity()
- Method in class at.emini.physics2D.
Body
Checks if the body is affected by gravity.
isDynamic()
- Method in class at.emini.physics2D.
Body
Checks if the body is dynamic.
isFixed()
- Method in class at.emini.physics2D.
Joint
Gets the flag if it is a fixed joint.
isFixOrthogonal()
- Method in class at.emini.physics2D.
Motor
Checks if the orthogonal movement is treated as well by the motor.
isInRect(FXVector, FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Checks if vector is within a rectangle.
isInteracting()
- Method in class at.emini.physics2D.
Body
Checks if the body can interact with other bodies.
isRegistered(Event)
- Method in class at.emini.physics2D.
EventSet
Checks whether an event is registered in this set.
isRegistered(Shape)
- Method in class at.emini.physics2D.
ShapeSet
Checks if a shape is registered.
isRelative()
- Method in class at.emini.physics2D.
Motor
Checks if the velocity is applied relative.
isResting()
- Method in class at.emini.physics2D.
Body
Checks if the body is resting.
isRotation()
- Method in class at.emini.physics2D.
Motor
Checks if the constraint type is rotation.
isSingle()
- Method in class at.emini.physics2D.
Contact
Checks if the contact is a single point.
J
JOINT
- Static variable in interface at.emini.physics2D.
Constraint
Type indicator for joints.
Joint
- Class in
at.emini.physics2D
The Joint class represents a joint connecting two bodies.
Joint(Body, Body, FXVector, FXVector, boolean)
- Constructor for class at.emini.physics2D.
Joint
Constructor.
Joint(Joint, Body[])
- Constructor for class at.emini.physics2D.
Joint
Copy Constructor.
L
Landscape
- Class in
at.emini.physics2D
The Landscape class represents a collection of static bodies.
Landscape()
- Constructor for class at.emini.physics2D.
Landscape
Default Constructor.
Landscape(Landscape)
- Constructor for class at.emini.physics2D.
Landscape
Copy constructor.
leftOf(FXVector, FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Determines the hemisphere of a point with respect to a line.
lengthFX()
- Method in class at.emini.physics2D.util.
FXVector
Calculates the length of the vector.
lengthSquare()
- Method in class at.emini.physics2D.util.
FXVector
Calculates the square of the length of the vector.
lengthSquareFX()
- Method in class at.emini.physics2D.util.
FXVector
Calculates the square of the length of the vector (FX).
loadBody(PhysicsFileReader, Vector, UserData)
- Static method in class at.emini.physics2D.
Body
Loads a body from stream.
loadConstraint(PhysicsFileReader, Vector, UserData)
- Static method in class at.emini.physics2D.
World
Loads a constraint from a stream.
loadEvent(PhysicsFileReader, World, UserData)
- Static method in class at.emini.physics2D.
Event
Loads an event from stream.
loadJoint(PhysicsFileReader, Vector, UserData)
- Static method in class at.emini.physics2D.
Joint
Loads a joint from stream.
loadLandscape(PhysicsFileReader)
- Static method in class at.emini.physics2D.
Landscape
Load a landscape from a stream.
loadMotor(PhysicsFileReader, Vector, UserData)
- Static method in class at.emini.physics2D.
Motor
Loads a motor from a stream.
loadParticleEmitter(PhysicsFileReader, World, UserData)
- Static method in class at.emini.physics2D.
ParticleEmitter
Loads a Particle Emitter from stream.
loadScript(PhysicsFileReader)
- Static method in class at.emini.physics2D.
Script
Loads a script from a stream.
loadShape(PhysicsFileReader, UserData, Vector)
- Static method in class at.emini.physics2D.
MultiShape
Loads a multi shape from a stream.
loadShape(PhysicsFileReader, UserData)
- Static method in class at.emini.physics2D.
Shape
Loads a shape from a stream.
loadSpring(PhysicsFileReader, Vector, UserData)
- Static method in class at.emini.physics2D.
Spring
Loads a spring from a stream.
loadWorld(PhysicsFileReader)
- Static method in class at.emini.physics2D.
World
Loads a world from a stream.
loadWorld(PhysicsFileReader, UserData)
- Static method in class at.emini.physics2D.
World
Loads a world from a stream.
M
M_SHAPE_MAX_VERTICES
- Static variable in class at.emini.physics2D.
World
M_sinMatFX
- Static variable in class at.emini.physics2D.util.
FXUtil
Lookup table for sinus calculation.
M_UNITY
- Static variable in class at.emini.physics2D.util.
FXVector
Unity vector.
mAngularVelocity2FX
- Variable in class at.emini.physics2D.
Body
Current angular velocity (2FX) of the body.
max(FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Maximizes the vector to a reference vector.
MAX_MASS_FX
- Static variable in class at.emini.physics2D.
Shape
Infinity mass (FX).
mAxesStartIndices
- Variable in class at.emini.physics2D.
MultiShape
Start indices for the unique axes for each shape in the common axes vector.
maxFX(float)
- Method in class at.emini.physics2D.util.
FXVector
Maximizes both x and y component.
mCcentroid
- Variable in class at.emini.physics2D.
Shape
Centroid of the shape.
mCoefficientFX
- Variable in class at.emini.physics2D.
Spring
The spring coefficient (0 = no spring) FX
mCol1xFX
- Variable in class at.emini.physics2D.util.
FXMatrix
a11 (MatFX)
mCol1yFX
- Variable in class at.emini.physics2D.util.
FXMatrix
a12 (MatFX)
mCol2xFX
- Variable in class at.emini.physics2D.util.
FXMatrix
a21 (MatFX)
mCol2yFX
- Variable in class at.emini.physics2D.util.
FXMatrix
a22 (MatFX)
mElasticityFX
- Variable in class at.emini.physics2D.
Shape
Elasticity factor (FX) for bodies with this shape.
mElements
- Variable in class at.emini.physics2D.
Script
Vector containing the scripting elements .
mEndpoints
- Variable in class at.emini.physics2D.
Landscape
End points of the segments.
mEvents
- Variable in class at.emini.physics2D.
EventSet
A list of all registered events
mEventSet
- Variable in class at.emini.physics2D.
World
Eventset managing the events.
mFaces
- Variable in class at.emini.physics2D.
Landscape
Faces of the segments.
mForces
- Variable in class at.emini.physics2D.
World
mFrictionFX
- Variable in class at.emini.physics2D.
Shape
Friction factor (FX) for bodies with this shape.
mId
- Variable in class at.emini.physics2D.
Body
Body id.
min(FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Minimizes the vector to a reference vector.
minFX(float)
- Method in class at.emini.physics2D.util.
FXVector
Minimizes both x and y component.
mLife
- Variable in class at.emini.physics2D.
ParticleEmitter
remaining lifetime of particle.
mMaxParticleCount
- Variable in class at.emini.physics2D.
ParticleEmitter
Maximum number of particles.
MOTOR
- Static variable in interface at.emini.physics2D.
Constraint
Type indicator for motors.
Motor
- Class in
at.emini.physics2D
The Motor class represents a motor constraint for a body.
Motor(Body, float, float)
- Constructor for class at.emini.physics2D.
Motor
Constructor for a rotational motor.
Motor(Body, float, float, float)
- Constructor for class at.emini.physics2D.
Motor
Constructor for a translational motor.
Motor(Motor, Body[])
- Constructor for class at.emini.physics2D.
Motor
Copy constructor.
mParticles
- Variable in class at.emini.physics2D.
World
mPositionFX
- Variable in class at.emini.physics2D.
Body
Position vector of the body.
mRestart
- Variable in class at.emini.physics2D.
Script
Flag if the script is restarted after finishing.
mRotation2FX
- Variable in class at.emini.physics2D.
Body
Current angle (2FX) of the body.
mSegmentCount
- Variable in class at.emini.physics2D.
Landscape
Number of landscape segments.
mShape
- Variable in class at.emini.physics2D.
Body
The shape of the body.
mShapes
- Variable in class at.emini.physics2D.
MultiShape
List of shapes the shape consists of
mShapes
- Variable in class at.emini.physics2D.
ShapeSet
A list of all registered shapes.
mShapeSet
- Variable in class at.emini.physics2D.
World
Shapeset managing the shapes.
mStartpoints
- Variable in class at.emini.physics2D.
Landscape
Start points of the segments.
mTargetAFX
- Variable in class at.emini.physics2D.
Script.ScriptElement
first target value
mTargetBFX
- Variable in class at.emini.physics2D.
Script.ScriptElement
second target value
mTimeSteps
- Variable in class at.emini.physics2D.
Script.ScriptElement
number of timesteps to execute this step
mType
- Variable in class at.emini.physics2D.
Script.ScriptElement
The type of the body modification (e.g: position, position, ...)
mult(FXVector)
- Method in class at.emini.physics2D.util.
FXMatrix
Multiplies the matrix with vector.
mult(float, float)
- Method in class at.emini.physics2D.util.
FXMatrix
Multiplies the matrix with vector given as two coordinates (FX).
mult(float, float, FXVector)
- Method in class at.emini.physics2D.util.
FXMatrix
Multiplies the matrix with vector given as two coordinates (FX).
mult(FXVector, FXVector)
- Method in class at.emini.physics2D.util.
FXMatrix
Multiplies the matrix with a vector (without object creation).
mult(int)
- Method in class at.emini.physics2D.util.
FXVector
Scales the vector.
multFX(float, float)
- Static method in class at.emini.physics2D.util.
FXUtil
Multiplication of two fixpoint values.
multFX(float)
- Method in class at.emini.physics2D.util.
FXVector
Scales the vector (FX).
MultiShape
- Class in
at.emini.physics2D
The multishape contains several shapes.
MultiShape(Vector)
- Constructor for class at.emini.physics2D.
MultiShape
Constructor.
MultiShape(MultiShape)
- Constructor for class at.emini.physics2D.
MultiShape
Copy Constructor.
mUserData
- Variable in class at.emini.physics2D.
Body
User data.
mUserData
- Variable in class at.emini.physics2D.
Event
User data
mUserData
- Variable in class at.emini.physics2D.
Joint
User data
mUserData
- Variable in class at.emini.physics2D.
Motor
User data
mUserData
- Variable in class at.emini.physics2D.
ParticleEmitter
User data
mUserData
- Variable in class at.emini.physics2D.
Shape
User data
mUserData
- Variable in class at.emini.physics2D.
Spring
User data
mUserData
- Variable in class at.emini.physics2D.
World
User data
mVelocityFX
- Variable in class at.emini.physics2D.
Body
Current velocity of the body.
mVertexStartIndices
- Variable in class at.emini.physics2D.
MultiShape
Start indices for the vertices for each shape in the common vertex vector.
mVertices
- Variable in class at.emini.physics2D.
Shape
Corners in clockwise direction (x to right, y up).
mVirtualAngularVelocity2FX
- Variable in class at.emini.physics2D.
Body
Current Virtual angular velocity of the body.
mVirtualVelocityFX
- Variable in class at.emini.physics2D.
Body
Current virtual velocity of the body.
mXFX
- Variable in class at.emini.physics2D.
ParticleEmitter
X positions of the particles.
mXPrevFX
- Variable in class at.emini.physics2D.
ParticleEmitter
Last X positions of the particles.
mYFX
- Variable in class at.emini.physics2D.
ParticleEmitter
Y positions of the particles.
mYPrevFX
- Variable in class at.emini.physics2D.
ParticleEmitter
Last Y positions of the particles.
N
newVector(int, int)
- Static method in class at.emini.physics2D.util.
FXVector
Creates a new vector.
next()
- Method in class at.emini.physics2D.util.
PhysicsFileReader
Reads the next byte.
nextInt()
- Method in class at.emini.physics2D.util.
PhysicsFileReader
Reads the next int (4 byte).
nextInt2FX()
- Method in class at.emini.physics2D.util.
PhysicsFileReader
Read the next int (4 byte, 2FX).
nextIntFX()
- Method in class at.emini.physics2D.util.
PhysicsFileReader
Read the next int (4 byte, FX).
nextString()
- Method in class at.emini.physics2D.util.
PhysicsFileReader
Reads the next string.
nextVector()
- Method in class at.emini.physics2D.util.
PhysicsFileReader
Reads the next vector : 4 + 4 bytes.
NONE
- Static variable in class at.emini.physics2D.
Script
Element Type none
normalize()
- Method in class at.emini.physics2D.util.
FXVector
Normalizes the vector.
normalizeFast()
- Method in class at.emini.physics2D.util.
FXVector
Normalizes the vector (fast).
normalizePrecise()
- Method in class at.emini.physics2D.util.
FXVector
Normalizes the vector.
normMatFX()
- Method in class at.emini.physics2D.util.
FXMatrix
Calculates the 1 norm.
P
ParticleEmitter
- Class in
at.emini.physics2D
Controls a batch of particles.
ParticleEmitter(int, float, float, float, float, Body, FXVector, FXVector, float, float, float, float, boolean, float, float, float, float)
- Constructor for class at.emini.physics2D.
ParticleEmitter
Constructor.
ParticleEmitter(ParticleEmitter)
- Constructor for class at.emini.physics2D.
ParticleEmitter
Copy Constructor.
PhysicsEventListener
- Interface in
at.emini.physics2D
Interface for an event listener.
PhysicsFileReader
- Class in
at.emini.physics2D.util
Wrapper for an InputStream.
PhysicsFileReader(String)
- Constructor for class at.emini.physics2D.util.
PhysicsFileReader
Constructor.
PhysicsFileReader(InputStream)
- Constructor for class at.emini.physics2D.util.
PhysicsFileReader
COnstructor using an input stream.
PI_2FX
- Static variable in class at.emini.physics2D.util.
FXUtil
Fixpoint Math representation of Pi (2FX).
POSITION
- Static variable in class at.emini.physics2D.
Script
Element Type position
positionFX()
- Method in class at.emini.physics2D.
Body
Gets the body position
postStep()
- Method in interface at.emini.physics2D.
Constraint
Cleans up after constraint iteration.
postStep()
- Method in class at.emini.physics2D.
Joint
Empty.
postStep()
- Method in class at.emini.physics2D.
Motor
Empty.
postStep()
- Method in class at.emini.physics2D.
Spring
Empty.
precalculate(float)
- Method in interface at.emini.physics2D.
Constraint
Precomputes static values.
precalculate(float)
- Method in class at.emini.physics2D.
Contact
Precalculates values for the constraint iteration.
precalculate(float)
- Method in class at.emini.physics2D.
Joint
Precalculates the mass matrix.
precalculate(float)
- Method in class at.emini.physics2D.
Motor
Performs the warmstarting.
precalculate(float)
- Method in class at.emini.physics2D.
Spring
Precalculates the values for the constraint solver iteration.
precalculatePositionCorrection(float, float)
- Method in class at.emini.physics2D.
Contact
preciseLengthFX()
- Method in class at.emini.physics2D.util.
FXVector
Calculates the length of the vector.
R
registerEvent(Event)
- Method in class at.emini.physics2D.
EventSet
Registers a new event.
registerEvents(Vector)
- Method in class at.emini.physics2D.
EventSet
Registers new events from a vector.
registerShape(Shape)
- Method in class at.emini.physics2D.
ShapeSet
Registers a shape in the set.
registerShapes(Vector)
- Method in class at.emini.physics2D.
ShapeSet
Registers a vector of shapes.
removeBody(Body)
- Method in class at.emini.physics2D.
World
Removes a body from the world.
removeCollisionLayer(int)
- Method in class at.emini.physics2D.
Body
Remove a collision layer from the body.
removeConstraint(Constraint)
- Method in class at.emini.physics2D.
World
Removes a constraint from the world.
removeEvent(Event)
- Method in class at.emini.physics2D.
EventSet
Removes an event form the event set.
removeEvent(Event)
- Method in class at.emini.physics2D.
World
Removes an event from the world.
removeExternalForce(ExternalForce)
- Method in class at.emini.physics2D.
World
Removes an external force from the world.
removeParticleEmitter(ParticleEmitter)
- Method in class at.emini.physics2D.
World
Removes a particle emitter from the world.
removeScript(Script)
- Method in class at.emini.physics2D.
World
Removes a script from the world.
removeSegment(int)
- Method in class at.emini.physics2D.
Landscape
Removes a segment from the landscape.
resetContacts()
- Method in class at.emini.physics2D.
Body
Clear all contacts from previous step.
resetContacts()
- Method in class at.emini.physics2D.
Landscape
Clears all contacts from the previous step.
rotation2FX()
- Method in class at.emini.physics2D.
Body
Gets the current angle.
ROTATIONAL_ACCELERATION
- Static variable in class at.emini.physics2D.
Script
Element Type acceleration
ROTATIONAL_VELOCITY
- Static variable in class at.emini.physics2D.
Script
Element Type velocity
rotationVelocity2FX()
- Method in class at.emini.physics2D.
Body
Gets the angulare velocity.
S
SCRIPT
- Static variable in interface at.emini.physics2D.
Constraint
Type indicator for scripts.
Script
- Class in
at.emini.physics2D
The script class represents a sequence of actions for a body.
Script(boolean)
- Constructor for class at.emini.physics2D.
Script
Constructor.
Script(Script)
- Constructor for class at.emini.physics2D.
Script
Copy constructor.
Script.ScriptElement
- Class in
at.emini.physics2D
Single action element for a script.
Script.ScriptElement(int, float, float, int)
- Constructor for class at.emini.physics2D.
Script.ScriptElement
Constructor.
segment1()
- Method in class at.emini.physics2D.
Contact
Gets the segment index of the first body if it is the landscape or shape index in case of a multi shape.
segment2()
- Method in class at.emini.physics2D.
Contact
Gets the segment index of the second body if it is the landscape or shape index in case of a multi shape.
segmentCount()
- Method in class at.emini.physics2D.
Landscape
Gets the number of landscape segments.
setAbsolutePoint1(FXVector)
- Method in class at.emini.physics2D.
Spring
Sets the first absolute anchor position.
setAbsolutePoint2(FXVector)
- Method in class at.emini.physics2D.
Spring
Sets the second absolute anchor position.
setAvgLifeTime(float, float)
- Method in class at.emini.physics2D.
ParticleEmitter
setBody1(Body)
- Method in class at.emini.physics2D.
Joint
Sets the first Body.
setBody1(Body)
- Method in class at.emini.physics2D.
Spring
Sets the first body.
setBody2(Body)
- Method in class at.emini.physics2D.
Joint
Sets the second Body.
setBody2(Body)
- Method in class at.emini.physics2D.
Spring
Sets the second body.
setBodyFilter(Body)
- Method in class at.emini.physics2D.
Event
Sets the body filter.
setCanCollide(boolean)
- Method in class at.emini.physics2D.
ParticleEmitter
setCoefficient(int)
- Method in class at.emini.physics2D.
Spring
Sets the spring coefficient.
setCoefficientFX(float)
- Method in class at.emini.physics2D.
Spring
Sets the spring coefficient (FX).
setCollisionLayer(int)
- Method in class at.emini.physics2D.
Joint
Sets collision layers for joined bodies.
setCollisionLayer(int)
- Method in class at.emini.physics2D.
Spring
Sets collision layers for joined bodies.
setConstraintFilter(Constraint)
- Method in class at.emini.physics2D.
Event
Sets the constraint filter.
setConstraintIterationDynamic(boolean)
- Method in class at.emini.physics2D.
World
Sets the constraint iteration mode to dynamic/fixed.
setConstraintIterations(int)
- Method in class at.emini.physics2D.
World
Sets the number of constraint iterations.
setContactPosition1(FXVector, float, boolean)
- Method in class at.emini.physics2D.
Contact
Sets the first contact position.
setContactPosition2(FXVector, float, boolean)
- Method in class at.emini.physics2D.
Contact
Sets the second contact position.
setCreationRateFX(float, float, float)
- Method in class at.emini.physics2D.
ParticleEmitter
setDampingFX(float)
- Method in class at.emini.physics2D.
ParticleEmitter
setDampingLateralFX(float)
- Method in class at.emini.physics2D.
World
Sets lateral damping factor (FX).
setDampingRotationalFX(float)
- Method in class at.emini.physics2D.
World
Sets rotational damping factor (FX).
setDistanceFX(float)
- Method in class at.emini.physics2D.
Spring
Sets the default distance of the spring (FX).
setDynamic(boolean)
- Method in class at.emini.physics2D.
Body
Sets dynamic property of the body.
setElasticity(int)
- Method in class at.emini.physics2D.
Shape
Set the elasticity (in percent).
setElasticityFX(float)
- Method in class at.emini.physics2D.
ParticleEmitter
setElasticityFX(float)
- Method in class at.emini.physics2D.
Shape
Set the elasticity (FX).
setEmitAngle2FX(float, float)
- Method in class at.emini.physics2D.
ParticleEmitter
setEmitAxesFixed(boolean)
- Method in class at.emini.physics2D.
ParticleEmitter
setEmitSpeedFX(float, float)
- Method in class at.emini.physics2D.
ParticleEmitter
setEmitter(Body)
- Method in class at.emini.physics2D.
ParticleEmitter
setFixOrthogonal(boolean)
- Method in class at.emini.physics2D.
Motor
Sets the fix orthogonal flag.
setFixPoint(FXVector)
- Method in class at.emini.physics2D.
Joint
Sets the fix point for the joint.
setFriction(int)
- Method in class at.emini.physics2D.
Shape
Sets the friction (in percent).
setFrictionFX(float)
- Method in class at.emini.physics2D.
Shape
Sets the friction of the shape (FX).
setGravity(int)
- Method in class at.emini.physics2D.
World
Sets the gravity.
setGravity(FXVector)
- Method in class at.emini.physics2D.
World
Sets the gravity vector.
setGravityAffected(boolean)
- Method in class at.emini.physics2D.
Body
Sets if the body is affected by gravity.
setGravityEffectFX(float)
- Method in class at.emini.physics2D.
ParticleEmitter
setInteracting(boolean)
- Method in class at.emini.physics2D.
Body
Sets if the body is allowed to interact with other bodies.
setIsRelative(boolean)
- Method in class at.emini.physics2D.
Motor
Sets the relative flag.
setLandscape(Landscape)
- Method in class at.emini.physics2D.
World
Sets the landscape for the world.
setMass(int)
- Method in class at.emini.physics2D.
Shape
Sets the mass.
setMassFX(float)
- Method in class at.emini.physics2D.
Shape
Sets the mass (FX).
setMaxForceFX(float)
- Method in class at.emini.physics2D.
Motor
Sets the maximum force.
setMaxParticleCount(int)
- Method in class at.emini.physics2D.
ParticleEmitter
setNormal(FXVector, Body, int, Body, int)
- Method in class at.emini.physics2D.
Contact
Resets normal and bodies.
setParameter(float, float, boolean, boolean, boolean)
- Method in class at.emini.physics2D.
Motor
Sets the motor parameters directly.
setPhysicsEventListener(PhysicsEventListener)
- Method in class at.emini.physics2D.
World
Sets the event listener.
setPositionConstraintIterations(int)
- Method in class at.emini.physics2D.
World
Sets the number of position constraint iterations.
setPositionFX(FXVector)
- Method in class at.emini.physics2D.
Body
Sets the position.
setRelEmitterPos1(FXVector)
- Method in class at.emini.physics2D.
ParticleEmitter
setRelEmitterPos2(FXVector)
- Method in class at.emini.physics2D.
ParticleEmitter
setRotatable(boolean)
- Method in class at.emini.physics2D.
Body
Sets if the body is allowed to rotate.
setRotation(boolean)
- Method in class at.emini.physics2D.
Motor
Sets the rotation mode.
setRotation2FX(float)
- Method in class at.emini.physics2D.
Body
Sets the current angle (2FX).
setRotationDeg(int)
- Method in class at.emini.physics2D.
Body
Sets the current angle.
setRotationMatrix(float)
- Method in class at.emini.physics2D.util.
FXMatrix
Sets the matrix to a rotation matrix.
setScript(Script)
- Method in class at.emini.physics2D.
Event
Sets the execution script.
setShape(Shape)
- Method in class at.emini.physics2D.
Body
Sets the shape.
setShapeFilter(Shape)
- Method in class at.emini.physics2D.
Event
Sets the shape filter.
setSimulationArea(int, int)
- Method in class at.emini.physics2D.
World
Sets the simulation area.
setTargetAFX(float)
- Method in class at.emini.physics2D.
Motor
Sets the target velocity X.
setTargetBFX(float)
- Method in class at.emini.physics2D.
Motor
Sets the target velocity Y.
setTargetsFX(float, float, float, float)
- Method in class at.emini.physics2D.
Event
Sets all targets.
setTimestepFX(float)
- Method in class at.emini.physics2D.
World
Sets the timestep.
setTriggerOnce(boolean)
- Method in class at.emini.physics2D.
Event
Flag whether event should be triggered more than once in a row.
setUserData(UserData)
- Method in class at.emini.physics2D.
Body
Set User data
setUserData(UserData)
- Method in class at.emini.physics2D.
Event
Set User data
setUserData(UserData)
- Method in class at.emini.physics2D.
Joint
Set User data
setUserData(UserData)
- Method in class at.emini.physics2D.
Motor
Set User data
setUserData(UserData)
- Method in class at.emini.physics2D.
ParticleEmitter
Set User data
setUserData(UserData)
- Method in class at.emini.physics2D.
Shape
Set User data
setUserData(UserData)
- Method in class at.emini.physics2D.
Spring
Set User data
setUserData(UserData)
- Method in class at.emini.physics2D.
World
Set User data
shape()
- Method in class at.emini.physics2D.
Body
Gets the shape of the body.
Shape
- Class in
at.emini.physics2D
The Shape class represents the shape and physical properties of a body.
Shape(FXVector[])
- Constructor for class at.emini.physics2D.
Shape
Constructor.
Shape(Shape)
- Constructor for class at.emini.physics2D.
Shape
Copy Constructor.
Shape()
- Constructor for class at.emini.physics2D.
Shape
Used for multi shape
ShapeSet
- Class in
at.emini.physics2D
The shapeset manages the shapes within a world.
ShapeSet()
- Constructor for class at.emini.physics2D.
ShapeSet
Empty Constructor.
ShapeSet(ShapeSet)
- Constructor for class at.emini.physics2D.
ShapeSet
Copy constructor.
sortArrays()
- Method in class at.emini.physics2D.
Landscape
Sorts the segment arrays.
SPRING
- Static variable in interface at.emini.physics2D.
Constraint
Type indicator for springs.
Spring
- Class in
at.emini.physics2D
The Spring class represents a spring constraint on two bodies body.
Spring(Body, Body, FXVector, FXVector, int)
- Constructor for class at.emini.physics2D.
Spring
Constructor.
Spring(Spring, Body[])
- Constructor for class at.emini.physics2D.
Spring
Copy constructor.
startPoint(int)
- Method in class at.emini.physics2D.
Landscape
Gets the start vector of a segment.
subtract(FXVector)
- Method in class at.emini.physics2D.util.
FXVector
Subtract a vector.
T
targetAFX()
- Method in class at.emini.physics2D.
Event
Gets the targetA
targetBFX()
- Method in class at.emini.physics2D.
Event
Gets the targetB
targetCFX()
- Method in class at.emini.physics2D.
Event
Gets the targetC
targetDFX()
- Method in class at.emini.physics2D.
Event
Gets the targetD
tick()
- Method in class at.emini.physics2D.
World
Performs a single step in the simulation.
times(int)
- Method in class at.emini.physics2D.util.
FXVector
Creates a copy multiplied by a factor.
timesFX(float)
- Method in class at.emini.physics2D.util.
FXVector
Creates a copy multiplied by a factor (FX).
toFX(int)
- Static method in class at.emini.physics2D.util.
FXUtil
Converts a value to fixpoint value (shifting).
translate(FXVector, float)
- Method in class at.emini.physics2D.
Body
Moves the body directly.
translate(FXVector)
- Method in class at.emini.physics2D.
World
Method to displace all bodies in the world by a given vector.
transpose()
- Method in class at.emini.physics2D.util.
FXVector
Transposes the vector.
turnRight()
- Method in class at.emini.physics2D.util.
FXVector
Turns the vector to the right by 90 degrees.
TWO_PI_2FX
- Static variable in class at.emini.physics2D.util.
FXUtil
Fixpoint Math representation of 2*Pi (2FX).
type()
- Method in class at.emini.physics2D.
Event
Gets the event type.
TYPE_BODY
- Static variable in interface at.emini.physics2D.
UserData
TYPE_BODY_ANGULARVELOCITY
- Static variable in class at.emini.physics2D.
Event
Event type angular velocity.
TYPE_BODY_COLLISION
- Static variable in class at.emini.physics2D.
Event
Event type collision.
TYPE_BODY_COLLISION_RELATIVE
- Static variable in class at.emini.physics2D.
Event
Event type collision.
TYPE_BODY_POSITION
- Static variable in class at.emini.physics2D.
Event
Event type position.
TYPE_BODY_ROTATION
- Static variable in class at.emini.physics2D.
Event
Event type rotation.
TYPE_BODY_SENSOR
- Static variable in class at.emini.physics2D.
Event
Event type area collision.
TYPE_BODY_VELOCITY
- Static variable in class at.emini.physics2D.
Event
Event type velocity.
TYPE_CONSTRAINT
- Static variable in interface at.emini.physics2D.
UserData
TYPE_CONSTRAINT_FORCE
- Static variable in class at.emini.physics2D.
Event
Event type constraint force.
TYPE_EVENT
- Static variable in interface at.emini.physics2D.
UserData
TYPE_PARTICLE
- Static variable in interface at.emini.physics2D.
UserData
TYPE_SHAPE
- Static variable in interface at.emini.physics2D.
UserData
TYPE_WORLD
- Static variable in interface at.emini.physics2D.
UserData
U
updateInternals()
- Method in class at.emini.physics2D.
Shape
Computes internal values for fast access.
updateVelocity(float, float)
- Method in class at.emini.physics2D.
Body
Postprocesses the velocity.
UserData
- Interface in
at.emini.physics2D
Interface for additional data for bodies.
V
VELOCITY
- Static variable in class at.emini.physics2D.
Script
Element Type velocity
velocityFX()
- Method in class at.emini.physics2D.
Body
Gets the current velocity.
W
World
- Class in
at.emini.physics2D
The world class represents the simulation environment.
World()
- Constructor for class at.emini.physics2D.
World
Empty Constructor.
World(ShapeSet)
- Constructor for class at.emini.physics2D.
World
Constructor with shapes.
World(World)
- Constructor for class at.emini.physics2D.
World
Copy constructor.
wrapAngleFX(float)
- Static method in class at.emini.physics2D.util.
FXUtil
Wraps an angle into the area [0..2*PI].
X
xAsInt()
- Method in class at.emini.physics2D.util.
FXVector
Gets the x coordinate as int.
xFX
- Variable in class at.emini.physics2D.util.
FXVector
X value of the Vector (FX)
Y
yAsInt()
- Method in class at.emini.physics2D.util.
FXVector
Gets the y coordinate as int.
yFX
- Variable in class at.emini.physics2D.util.
FXVector
Y value of the Vector (FX)
A
B
C
D
E
F
G
I
J
L
M
N
P
R
S
T
U
V
W
X
Y
Overview
Package
Class
Tree
Deprecated
Index
Help
Emini Physics Engine 1.3.5a API Documentation
PREV NEXT
FRAMES
NO FRAMES
All Classes
Emini Physics Engine 1.3.5a API Documentation - Copyright 2014 Alexander Adensamer