| Modifier and Type | Method and Description |
|---|---|
Vec2 |
Vec2.abs() |
static Vec2 |
Vec2.abs(Vec2 a) |
Vec2 |
Vec2.absLocal()
Modify this vector to have only positive components.
|
Vec2 |
Vec2.add(double otherX,
double otherY)
Return the sum of this vector and another; does not alter either one.
|
Vec2 |
Vec2.add(javafx.geometry.Point2D vector)
Return the sum of this vector and another; does not alter either one.
|
Vec2 |
Vec2.add(Vec2 v)
Return the sum of this vector and another; does not alter either one.
|
Vec2 |
Vec2.addLocal(double x,
double y)
Adds values to this vector and returns result - alters this vector.
|
Vec2 |
Vec2.addLocal(Vec2 v)
Add another vector to this one and returns result - alters this vector.
|
Vec2 |
Vec2.clone() |
Vec2 |
Vec2.copy() |
static Vec2 |
Vec2.cross(float s,
Vec2 a) |
static Vec2 |
Vec2.cross(Vec2 a,
float s) |
static Vec2 |
Vec2.fromAngle(double degrees) |
Vec2 |
BezierSpline.BezierCurve.getControl1() |
Vec2 |
BezierSpline.BezierCurve.getControl2() |
Vec2 |
BezierSpline.BezierCurve.getEnd() |
Vec2 |
BezierSpline.BezierCurve.getStart() |
static Vec2 |
Vec2.max(Vec2 a,
Vec2 b) |
Vec2 |
Vec2.midpoint(javafx.geometry.Point2D other) |
Vec2 |
Vec2.midpoint(Vec2 other) |
static Vec2 |
Vec2.min(Vec2 a,
Vec2 b) |
Vec2 |
Vec2.mul(double a)
Return this vector multiplied by a scalar; does not alter this vector.
|
Vec2 |
Vec2.mulLocal(double a)
Multiply this vector by a number and return result - alters this vector.
|
Vec2 |
Vec2.negate()
Return the negation of this vector; does not alter this vector.
|
Vec2 |
Vec2.negateLocal()
Flip the vector and return it - alters this vector.
|
Vec2 |
Vec2.normalize() |
Vec2 |
Vec2.normalizeLocal()
Normalizes and returns this vector.
|
Vec2 |
Vec2.perpendicularCCW() |
Vec2 |
Vec2.perpendicularCW() |
static Vec2 |
FXGLMath.randomVec2() |
Vec2 |
Vec2.set(float x,
float y)
Set this vector component-wise.
|
Vec2 |
Vec2.set(javafx.geometry.Point2D vector)
Set this vector to another vector.
|
Vec2 |
Vec2.set(Vec2 v)
Set this vector to another vector.
|
Vec2 |
Vec2.setFromAngle(double degrees)
Set this vector from angle.
|
Vec2 |
Vec2.setLength(double length) |
Vec2 |
Vec2.skew()
Get the skew vector such that dot(skew_vec, other) == cross(vec, other).
|
Vec2 |
Vec2.sub(double otherX,
double otherY)
Return the difference of this vector and another; does not alter either one.
|
Vec2 |
Vec2.sub(javafx.geometry.Point2D vector)
Return the difference of this vector and another; does not alter either one.
|
Vec2 |
Vec2.sub(Vec2 v)
Return the difference of this vector and another; does not alter either one.
|
Vec2 |
Vec2.subLocal(double x,
double y)
Subtract another vector from this one and return result - alters this vector.
|
Vec2 |
Vec2.subLocal(Vec2 v)
Subtract another vector from this one and return result - alters this vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Vec2 |
Vec2.abs(Vec2 a) |
static void |
Vec2.absToOut(Vec2 a,
Vec2 out) |
Vec2 |
Vec2.add(Vec2 v)
Return the sum of this vector and another; does not alter either one.
|
Vec2 |
Vec2.addLocal(Vec2 v)
Add another vector to this one and returns result - alters this vector.
|
float |
Vec2.angle(Vec2 other) |
static BezierSpline |
FXGLMath.closedBezierSpline(Vec2[] points) |
static Vec2 |
Vec2.cross(float s,
Vec2 a) |
static Vec2 |
Vec2.cross(Vec2 a,
float s) |
static float |
Vec2.cross(Vec2 a,
Vec2 b) |
static void |
Vec2.crossToOut(float s,
Vec2 a,
Vec2 out) |
static void |
Vec2.crossToOut(Vec2 a,
float s,
Vec2 out) |
static void |
Vec2.crossToOutUnsafe(float s,
Vec2 a,
Vec2 out) |
static void |
Vec2.crossToOutUnsafe(Vec2 a,
float s,
Vec2 out) |
double |
Vec2.distance(Vec2 other) |
static float |
Vec2.dot(Vec2 a,
Vec2 b) |
static Vec2 |
Vec2.max(Vec2 a,
Vec2 b) |
static void |
Vec2.maxToOut(Vec2 a,
Vec2 b,
Vec2 out) |
Vec2 |
Vec2.midpoint(Vec2 other) |
static Vec2 |
Vec2.min(Vec2 a,
Vec2 b) |
static void |
Vec2.minToOut(Vec2 a,
Vec2 b,
Vec2 out) |
static void |
Vec2.negateToOut(Vec2 a,
Vec2 out) |
Vec2 |
Vec2.set(Vec2 v)
Set this vector to another vector.
|
void |
Vec2.skew(Vec2 out)
Get the skew vector such that dot(skew_vec, other) == cross(vec, other);
does not alter this vector.
|
Vec2 |
Vec2.sub(Vec2 v)
Return the difference of this vector and another; does not alter either one.
|
Vec2 |
Vec2.subLocal(Vec2 v)
Subtract another vector from this one and return result - alters this vector.
|
| Constructor and Description |
|---|
BezierCurve(Vec2 start,
Vec2 end,
Vec2 control1,
Vec2 control2) |
Vec2(Vec2 toCopy) |
| Modifier and Type | Method and Description |
|---|---|
Entities.GameEntityBuilder |
Entities.GameEntityBuilder.at(Vec2 position) |
void |
GameEntity.translate(Vec2 vector)
Translate x and y by given vector.
|
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
PhysicsWorld.toPoint(javafx.geometry.Point2D p)
Converts a point in pixel space to a point in physics space.
|
Vec2 |
PhysicsWorld.toVector(javafx.geometry.Point2D v)
Converts a vector of type Point2D to vector of type Vec2
|
| Modifier and Type | Method and Description |
|---|---|
void |
PhysicsComponent.applyBodyForce(Vec2 force,
Vec2 point)
Apply a force at a world point.
|
void |
PhysicsComponent.applyBodyForceToCenter(Vec2 force)
Apply a force to the center of mass.
|
void |
PhysicsComponent.applyBodyLinearImpulse(Vec2 impulse,
Vec2 point,
boolean wake)
Apply an impulse at a point.
|
void |
PhysicsComponent.setBodyLinearVelocity(Vec2 vector)
Set linear velocity for a physics entity.
|
javafx.geometry.Point2D |
PhysicsWorld.toPoint(Vec2 p)
Converts a point in physics space to a point in pixel space.
|
javafx.geometry.Point2D |
PhysicsWorld.toVector(Vec2 v)
Converts a vector of type Vec2 to vector of type Point2D
|
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
DebugDraw.getScreenToWorld(float screenX,
float screenY)
takes the screen coordinates and returns the world coordinates.
|
Vec2 |
DebugDraw.getScreenToWorld(Vec2 argScreen)
takes the screen coordinates (argScreen) and returns the world coordinates
|
Vec2 |
DebugDraw.getWorldToScreen(float worldX,
float worldY)
Takes the world coordinates and returns the screen coordinates.
|
Vec2 |
DebugDraw.getWorldToScreen(Vec2 argWorld)
takes the world coordinate (argWorld) and returns the screen coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
DebugDraw.drawCircle(Vec2 center,
float radius,
javafx.scene.paint.Color color)
Draw a circle.
|
void |
DebugDraw.drawCircle(Vec2 center,
float radius,
Vec2 axis,
javafx.scene.paint.Color color)
Draws a circle with an axis
|
abstract void |
DebugDraw.drawParticles(Vec2[] centers,
float radius,
ParticleColor[] colors,
int count)
Draw a particle array
|
abstract void |
DebugDraw.drawParticlesWireframe(Vec2[] centers,
float radius,
ParticleColor[] colors,
int count)
Draw a particle array
|
abstract void |
DebugDraw.drawPoint(Vec2 argPoint,
float argRadiusOnScreen,
javafx.scene.paint.Color argColor) |
void |
DebugDraw.drawPolygon(Vec2[] vertices,
int vertexCount,
javafx.scene.paint.Color color)
Draw a closed polygon provided in CCW order.
|
abstract void |
DebugDraw.drawSegment(Vec2 p1,
Vec2 p2,
javafx.scene.paint.Color color)
Draw a line segment.
|
abstract void |
DebugDraw.drawSolidCircle(Vec2 center,
float radius,
Vec2 axis,
javafx.scene.paint.Color color)
Draw a solid circle.
|
abstract void |
DebugDraw.drawSolidPolygon(Vec2[] vertices,
int vertexCount,
javafx.scene.paint.Color color)
Draw a solid closed polygon provided in CCW order.
|
void |
DebugDraw.drawString(Vec2 pos,
String s,
javafx.scene.paint.Color color) |
Vec2 |
DebugDraw.getScreenToWorld(Vec2 argScreen)
takes the screen coordinates (argScreen) and returns the world coordinates
|
void |
DebugDraw.getScreenToWorldToOut(float screenX,
float screenY,
Vec2 argWorld)
takes the screen coordinates and puts the corresponding world coordinates in argWorld.
|
void |
DebugDraw.getScreenToWorldToOut(Vec2 argScreen,
Vec2 argWorld) |
Vec2 |
DebugDraw.getWorldToScreen(Vec2 argWorld)
takes the world coordinate (argWorld) and returns the screen coordinates.
|
void |
DebugDraw.getWorldToScreenToOut(float worldX,
float worldY,
Vec2 argScreen)
Takes the world coordinates and puts the corresponding screen coordinates in argScreen.
|
void |
DebugDraw.getWorldToScreenToOut(Vec2 argWorld,
Vec2 argScreen) |
float |
RayCastCallback.reportFixture(Fixture fixture,
Vec2 point,
Vec2 normal,
float fraction)
Called for each fixture found in the query.
|
float |
ParticleRaycastCallback.reportParticle(int index,
Vec2 point,
Vec2 normal,
float fraction)
Called for each particle found in the query.
|
| Modifier and Type | Field and Description |
|---|---|
Vec2 |
Manifold.localNormal
not use for Type::e_points
|
Vec2 |
ManifoldPoint.localPoint
usage depends on manifold type
|
Vec2 |
Manifold.localPoint
usage depends on manifold type
|
Vec2 |
AABB.lowerBound
Bottom left vertex of bounding box.
|
Vec2[] |
Distance.DistanceProxy.m_buffer |
Vec2[] |
Distance.DistanceProxy.m_vertices |
Vec2 |
WorldManifold.normal
World vector pointing from A to B
|
Vec2 |
RayCastOutput.normal |
Vec2 |
RayCastInput.p1 |
Vec2 |
RayCastInput.p2 |
Vec2 |
DistanceOutput.pointA
Closest point on shapeA
|
Vec2 |
DistanceOutput.pointB
Closest point on shapeB
|
Vec2[] |
WorldManifold.points
World contact point (point of intersection)
|
Vec2 |
AABB.upperBound
Top right vertex of bounding box.
|
Vec2 |
Collision.ClipVertex.v |
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
AABB.getCenter()
Get the center of the AABB
|
Vec2 |
AABB.getExtents()
Get the extents of the AABB (half-widths).
|
Vec2 |
Distance.DistanceProxy.getSupportVertex(Vec2 d)
Get the supporting vertex in the given direction.
|
Vec2 |
Distance.DistanceProxy.getVertex(int index)
Get a vertex by index.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
Collision.clipSegmentToLine(Collision.ClipVertex[] vOut,
Collision.ClipVertex[] vIn,
Vec2 normal,
float offset,
int vertexIndexA)
Clipping for contact manifolds.
|
void |
AABB.getCenterToOut(Vec2 out) |
void |
AABB.getExtentsToOut(Vec2 out) |
int |
Distance.DistanceProxy.getSupport(Vec2 d)
Get the supporting vertex index in the given direction.
|
Vec2 |
Distance.DistanceProxy.getSupportVertex(Vec2 d)
Get the supporting vertex in the given direction.
|
void |
AABB.getVertices(Vec2[] argRay) |
| Constructor and Description |
|---|
AABB(Vec2 lowerVertex,
Vec2 upperVertex)
Creates an AABB object using the given bounding vertices.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DynamicTreeFlatNodes.moveProxy(int proxyId,
AABB aabb,
Vec2 displacement) |
boolean |
DynamicTree.moveProxy(int proxyId,
AABB aabb,
Vec2 displacement) |
void |
DefaultBroadPhaseBuffer.moveProxy(int proxyId,
AABB aabb,
Vec2 displacement) |
boolean |
BroadPhaseStrategy.moveProxy(int proxyId,
AABB aabb,
Vec2 displacement)
Move a proxy with a swepted AABB.
|
void |
BroadPhase.moveProxy(int proxyId,
AABB aabb,
Vec2 displacement)
Call MoveProxy as many times as you like, then when you are done call UpdatePairs to finalized
the proxy pairs (for your time step).
|
| Modifier and Type | Field and Description |
|---|---|
Vec2 |
MassData.center
The position of the shape's centroid relative to the shape's origin.
|
Vec2 |
PolygonShape.m_centroid
Local position of the shape centroid in parent body frame.
|
Vec2[] |
PolygonShape.m_normals
The normals of the shape.
|
Vec2 |
CircleShape.m_p |
Vec2 |
EdgeShape.m_vertex0
optional adjacent vertex 1.
|
Vec2 |
EdgeShape.m_vertex1
edge vertex 1
|
Vec2 |
EdgeShape.m_vertex2
edge vertex 2
|
Vec2 |
EdgeShape.m_vertex3
optional adjacent vertex 2.
|
Vec2[] |
PolygonShape.m_vertices
The vertices of the shape.
|
Vec2[] |
ChainShape.m_vertices |
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
PolygonShape.centroid(Transform xf)
Get the centroid and apply the supplied transform.
|
Vec2 |
PolygonShape.centroidToOut(Transform xf,
Vec2 out)
Get the centroid and apply the supplied transform.
|
Vec2[] |
PolygonShape.getNormals()
Get the edge normal vectors.
|
Vec2 |
CircleShape.getSupportVertex(Vec2 d)
Get the supporting vertex in the given direction.
|
Vec2 |
PolygonShape.getVertex(int index)
Get a vertex by index.
|
Vec2 |
CircleShape.getVertex(int index)
Get a vertex by index.
|
Vec2[] |
PolygonShape.getVertices()
Get the vertices in local coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
PolygonShape.centroidToOut(Transform xf,
Vec2 out)
Get the centroid and apply the supplied transform.
|
void |
PolygonShape.computeCentroidToOut(Vec2[] vs,
int count,
Vec2 out) |
void |
PolygonShape.computeCentroidToOut(Vec2[] vs,
int count,
Vec2 out) |
abstract float |
Shape.computeDistanceToOut(Transform xf,
Vec2 p,
int childIndex,
Vec2 normalOut)
Compute the distance from the current shape to the specified point.
|
float |
PolygonShape.computeDistanceToOut(Transform xf,
Vec2 p,
int childIndex,
Vec2 normalOut) |
float |
EdgeShape.computeDistanceToOut(Transform xf,
Vec2 p,
int childIndex,
Vec2 normalOut) |
float |
CircleShape.computeDistanceToOut(Transform xf,
Vec2 p,
int childIndex,
Vec2 normalOut) |
float |
ChainShape.computeDistanceToOut(Transform xf,
Vec2 p,
int childIndex,
Vec2 normalOut) |
void |
ChainShape.createChain(Vec2[] vertices,
int count)
Create a chain with isolated end vertices.
|
void |
ChainShape.createLoop(Vec2[] vertices,
int count)
Create a loop.
|
int |
CircleShape.getSupport(Vec2 d)
Get the supporting vertex index in the given direction.
|
Vec2 |
CircleShape.getSupportVertex(Vec2 d)
Get the supporting vertex in the given direction.
|
void |
PolygonShape.set(Vec2[] vertices,
int count)
Create a convex hull from the given array of points.
|
void |
PolygonShape.set(Vec2[] verts,
int num,
Vec2Array vecPool,
IntArray intPool)
Create a convex hull from the given array of points.
|
void |
EdgeShape.set(Vec2 v1,
Vec2 v2) |
void |
PolygonShape.setAsBox(float hx,
float hy,
Vec2 center,
float angle)
Build vertices to represent an oriented box.
|
void |
ChainShape.setNextVertex(Vec2 nextVertex)
Establish connectivity to a vertex that follows the last vertex.
|
void |
ChainShape.setPrevVertex(Vec2 prevVertex)
Establish connectivity to a vertex that precedes the first vertex.
|
abstract boolean |
Shape.testPoint(Transform xf,
Vec2 p)
Test a point for containment in this shape.
|
boolean |
PolygonShape.testPoint(Transform xf,
Vec2 p) |
boolean |
EdgeShape.testPoint(Transform xf,
Vec2 p) |
boolean |
CircleShape.testPoint(Transform transform,
Vec2 p) |
boolean |
ChainShape.testPoint(Transform xf,
Vec2 p) |
| Modifier and Type | Field and Description |
|---|---|
Vec2 |
Sweep.c
Center world positions
|
Vec2 |
Sweep.c0
Center world positions
|
Vec2 |
Mat22.ex |
Vec2 |
Mat22.ey |
Vec2 |
Sweep.localCenter
Local center of mass position
|
Vec2 |
RaycastResult.normal |
Vec2 |
Transform.p
The translation caused by the transform
|
| Modifier and Type | Method and Description |
|---|---|
static Vec2 |
JBoxUtils.clamp(Vec2 a,
Vec2 low,
Vec2 high) |
Vec2 |
IViewportTransform.getCenter()
center of the viewport.
|
Vec2 |
IViewportTransform.getExtents()
This is the half-width and half-height.
|
static Vec2 |
Mat22.mul(Mat22 R,
Vec2 v) |
static Vec2 |
Transform.mul(Transform T,
Vec2 v) |
Vec2 |
Mat22.mul(Vec2 v)
Multiply a vector by this matrix.
|
static Vec2 |
Mat33.mul22(Mat33 A,
Vec2 v) |
static Vec2 |
Mat22.mulTrans(Mat22 R,
Vec2 v) |
static Vec2 |
Transform.mulTrans(Transform T,
Vec2 v) |
Vec2 |
Mat22.mulTrans(Vec2 v)
Multiply a vector by the transpose of this matrix.
|
Vec2 |
Mat22.solve(Vec2 b)
Solve A * x = b where A = this matrix.
|
Vec2 |
Mat33.solve22(Vec2 b)
Solve A * x = b, where b is a column vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Vec2 |
JBoxUtils.clamp(Vec2 a,
Vec2 low,
Vec2 high) |
static void |
JBoxUtils.clampToOut(Vec2 a,
Vec2 low,
Vec2 high,
Vec2 dest) |
static float |
JBoxUtils.distance(Vec2 v1,
Vec2 v2) |
static float |
JBoxUtils.distanceSquared(Vec2 v1,
Vec2 v2) |
void |
IViewportTransform.getScreenToWorld(Vec2 screen,
Vec2 world)
takes the screen coordinates (screen) and puts the corresponding world coordinates in world.
|
void |
IViewportTransform.getScreenVectorToWorld(Vec2 screen,
Vec2 world)
Transforms the given directional screen vector back to the world direction.
|
void |
IViewportTransform.getWorldToScreen(Vec2 world,
Vec2 screen)
takes the world coordinate (world) puts the corresponding screen coordinate in screen.
|
void |
IViewportTransform.getWorldVectorToScreen(Vec2 world,
Vec2 screen)
Transforms the given directional vector by the viewport transform (not positional)
|
void |
Rotation.getXAxis(Vec2 xAxis) |
void |
Rotation.getYAxis(Vec2 yAxis) |
static Vec2 |
Mat22.mul(Mat22 R,
Vec2 v) |
static Vec2 |
Transform.mul(Transform T,
Vec2 v) |
Vec2 |
Mat22.mul(Vec2 v)
Multiply a vector by this matrix.
|
static Vec2 |
Mat33.mul22(Mat33 A,
Vec2 v) |
static void |
Mat33.mul22ToOut(Mat33 A,
Vec2 v,
Vec2 out) |
static void |
Mat33.mul22ToOutUnsafe(Mat33 A,
Vec2 v,
Vec2 out) |
static void |
Mat22.mulToOut(Mat22 R,
Vec2 v,
Vec2 out) |
static void |
Rotation.mulToOut(Rotation q,
Vec2 v,
Vec2 out) |
static void |
Transform.mulToOut(Transform T,
Vec2 v,
Vec2 out) |
void |
Mat22.mulToOut(Vec2 v,
Vec2 out) |
static void |
Mat22.mulToOutUnsafe(Mat22 R,
Vec2 v,
Vec2 out) |
static void |
Rotation.mulToOutUnsafe(Rotation q,
Vec2 v,
Vec2 out) |
static void |
Transform.mulToOutUnsafe(Transform T,
Vec2 v,
Vec2 out) |
void |
Mat22.mulToOutUnsafe(Vec2 v,
Vec2 out) |
static Vec2 |
Mat22.mulTrans(Mat22 R,
Vec2 v) |
static void |
Rotation.mulTrans(Rotation q,
Vec2 v,
Vec2 out) |
static Vec2 |
Transform.mulTrans(Transform T,
Vec2 v) |
Vec2 |
Mat22.mulTrans(Vec2 v)
Multiply a vector by the transpose of this matrix.
|
static void |
Mat22.mulTransToOut(Mat22 R,
Vec2 v,
Vec2 out) |
static void |
Transform.mulTransToOut(Transform T,
Vec2 v,
Vec2 out) |
void |
Mat22.mulTransToOut(Vec2 v,
Vec2 out) |
static void |
Mat22.mulTransToOutUnsafe(Mat22 R,
Vec2 v,
Vec2 out) |
static void |
Transform.mulTransToOutUnsafe(Transform T,
Vec2 v,
Vec2 out) |
static void |
Rotation.mulTransUnsafe(Rotation q,
Vec2 v,
Vec2 out) |
void |
Transform.set(Vec2 p,
float angle)
Set this based on the position and angle.
|
void |
Mat22.set(Vec2 c1,
Vec2 c2)
Set by column vectors.
|
void |
IViewportTransform.setCenter(Vec2 pos)
sets the center of the viewport.
|
void |
IViewportTransform.setExtents(Vec2 extents)
This sets the half-width and half-height.
|
Vec2 |
Mat22.solve(Vec2 b)
Solve A * x = b where A = this matrix.
|
Vec2 |
Mat33.solve22(Vec2 b)
Solve A * x = b, where b is a column vector.
|
void |
Mat33.solve22ToOut(Vec2 b,
Vec2 out)
Solve A * x = b, where b is a column vector.
|
void |
Mat22.solveToOut(Vec2 b,
Vec2 out) |
| Constructor and Description |
|---|
Mat22(Vec2 c1,
Vec2 c2)
Create a matrix with given vectors as columns.
|
Transform(Vec2 _position,
Rotation _R)
Initialize using a position vector and a rotation matrix.
|
| Modifier and Type | Field and Description |
|---|---|
Vec2 |
Body.m_force |
Vec2 |
Body.m_linearVelocity |
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
World.getGravity() |
Vec2 |
BodyDef.getLinearVelocity()
The linear velocity of the body in world co-ordinates.
|
Vec2 |
Body.getLinearVelocity()
Get the linear velocity of the center of mass.
|
Vec2 |
Body.getLinearVelocityFromLocalPoint(Vec2 localPoint)
Get the world velocity of a local point.
|
Vec2 |
Body.getLinearVelocityFromWorldPoint(Vec2 worldPoint)
Get the world linear velocity of a world point attached to this body.
|
Vec2 |
Body.getLocalCenter()
Get the local position of the center of mass.
|
Vec2 |
Body.getLocalPoint(Vec2 worldPoint)
Gets a local point relative to the body's origin given a world point.
|
Vec2 |
Body.getLocalVector(Vec2 worldVector)
Gets a local vector given a world vector.
|
Vec2[] |
World.getParticlePositionBuffer() |
Vec2[] |
World.getParticleVelocityBuffer() |
Vec2 |
BodyDef.getPosition()
The world position of the body.
|
Vec2 |
Body.getPosition()
Get the world body origin position.
|
Vec2 |
Body.getWorldCenter()
Get the world position of the center of mass.
|
Vec2 |
Body.getWorldPoint(Vec2 localPoint)
Get the world coordinates of a point given the local coordinates.
|
Vec2 |
Body.getWorldVector(Vec2 localVector)
Get the world coordinates of a vector given the local coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Body.applyForce(Vec2 force,
Vec2 point)
Apply a force at a world point.
|
void |
Body.applyForceToCenter(Vec2 force)
Apply a force to the center of mass.
|
void |
Body.applyLinearImpulse(Vec2 impulse,
Vec2 point,
boolean wake)
Apply an impulse at a point.
|
float |
Fixture.computeDistance(Vec2 p,
int childIndex,
Vec2 normalOut)
Compute the distance from this fixture.
|
boolean |
Fixture.containsPoint(Vec2 p)
Test a point for containment in this fixture.
|
Vec2 |
Body.getLinearVelocityFromLocalPoint(Vec2 localPoint)
Get the world velocity of a local point.
|
void |
Body.getLinearVelocityFromLocalPointToOut(Vec2 localPoint,
Vec2 out) |
Vec2 |
Body.getLinearVelocityFromWorldPoint(Vec2 worldPoint)
Get the world linear velocity of a world point attached to this body.
|
void |
Body.getLinearVelocityFromWorldPointToOut(Vec2 worldPoint,
Vec2 out) |
Vec2 |
Body.getLocalPoint(Vec2 worldPoint)
Gets a local point relative to the body's origin given a world point.
|
void |
Body.getLocalPointToOut(Vec2 worldPoint,
Vec2 out) |
Vec2 |
Body.getLocalVector(Vec2 worldVector)
Gets a local vector given a world vector.
|
void |
Body.getLocalVectorToOut(Vec2 worldVector,
Vec2 out) |
void |
Body.getLocalVectorToOutUnsafe(Vec2 worldVector,
Vec2 out) |
Vec2 |
Body.getWorldPoint(Vec2 localPoint)
Get the world coordinates of a point given the local coordinates.
|
void |
Body.getWorldPointToOut(Vec2 localPoint,
Vec2 out) |
Vec2 |
Body.getWorldVector(Vec2 localVector)
Get the world coordinates of a vector given the local coordinates.
|
void |
Body.getWorldVectorToOut(Vec2 localVector,
Vec2 out) |
void |
Body.getWorldVectorToOutUnsafe(Vec2 localVector,
Vec2 out) |
void |
World.raycast(ParticleRaycastCallback particleCallback,
Vec2 point1,
Vec2 point2)
Ray-cast the world for all particles in the path of the ray.
|
void |
World.raycast(RayCastCallback callback,
ParticleRaycastCallback particleCallback,
Vec2 point1,
Vec2 point2)
Ray-cast the world for all fixtures and particles in the path of the ray.
|
void |
World.raycast(RayCastCallback callback,
Vec2 point1,
Vec2 point2)
Ray-cast the world for all fixtures in the path of the ray.
|
void |
World.setGravity(Vec2 gravity)
Change the global gravity vector.
|
void |
BodyDef.setLinearVelocity(Vec2 linearVelocity)
The linear velocity of the body in world co-ordinates.
|
void |
Body.setLinearVelocity(Vec2 v)
Set the linear velocity of the center of mass.
|
void |
World.setParticlePositionBuffer(Vec2[] buffer,
int capacity) |
void |
World.setParticleVelocityBuffer(Vec2[] buffer,
int capacity) |
void |
BodyDef.setPosition(Vec2 position)
The world position of the body.
|
void |
Body.setTransform(Vec2 position,
float angle)
Set the position of the body's origin and rotation.
|
void |
Island.solve(Profile profile,
TimeStep step,
Vec2 gravity,
boolean allowSleep) |
| Constructor and Description |
|---|
World(Vec2 gravity)
Construct a world object.
|
World(Vec2 gravity,
IWorldPool pool)
Construct a world object.
|
World(Vec2 gravity,
IWorldPool pool,
BroadPhase broadPhase) |
World(Vec2 gravity,
IWorldPool pool,
BroadPhaseStrategy strategy) |
| Modifier and Type | Field and Description |
|---|---|
Vec2 |
Position.c |
Vec2 |
ContactVelocityConstraint.normal |
Vec2 |
ContactVelocityConstraint.VelocityConstraintPoint.rA |
Vec2 |
ContactVelocityConstraint.VelocityConstraintPoint.rB |
Vec2 |
Velocity.v |
| Modifier and Type | Field and Description |
|---|---|
Vec2 |
PulleyJointDef.groundAnchorA
The first ground anchor in world coordinates.
|
Vec2 |
PulleyJointDef.groundAnchorB
The second ground anchor in world coordinates.
|
Vec2 |
Jacobian.linearA |
Vec2 |
MotorJointDef.linearOffset
Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.
|
Vec2 |
WheelJointDef.localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
WeldJointDef.localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
RopeJointDef.localAnchorA
The local anchor point relative to bodyA's origin.
|
Vec2 |
RevoluteJointDef.localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
PulleyJointDef.localAnchorA
The local anchor point relative to bodyA's origin.
|
Vec2 |
PrismaticJointDef.localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
FrictionJointDef.localAnchorA
The local anchor point relative to bodyA's origin.
|
Vec2 |
DistanceJointDef.localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
WheelJointDef.localAnchorB
The local anchor point relative to body2's origin.
|
Vec2 |
WeldJointDef.localAnchorB
The local anchor point relative to body2's origin.
|
Vec2 |
RopeJointDef.localAnchorB
The local anchor point relative to bodyB's origin.
|
Vec2 |
RevoluteJointDef.localAnchorB
The local anchor point relative to body2's origin.
|
Vec2 |
PulleyJointDef.localAnchorB
The local anchor point relative to bodyB's origin.
|
Vec2 |
PrismaticJointDef.localAnchorB
The local anchor point relative to body2's origin.
|
Vec2 |
FrictionJointDef.localAnchorB
The local anchor point relative to bodyB's origin.
|
Vec2 |
DistanceJointDef.localAnchorB
The local anchor point relative to body2's origin.
|
Vec2 |
WheelJointDef.localAxisA
The local translation axis in body1.
|
Vec2 |
PrismaticJointDef.localAxisA
The local translation axis in body1.
|
protected Vec2 |
RevoluteJoint.m_localAnchorA |
protected Vec2 |
PrismaticJoint.m_localAnchorA |
protected Vec2 |
RevoluteJoint.m_localAnchorB |
protected Vec2 |
PrismaticJoint.m_localAnchorB |
protected Vec2 |
PrismaticJoint.m_localXAxisA |
protected Vec2 |
PrismaticJoint.m_localYAxisA |
Vec2 |
MouseJointDef.target
The initial world target point.
|
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
PulleyJoint.getGroundAnchorA() |
Vec2 |
PulleyJoint.getGroundAnchorB() |
Vec2 |
MotorJoint.getLinearOffset()
Get the target linear offset, in frame A, in meters.
|
Vec2 |
WheelJoint.getLocalAnchorA() |
Vec2 |
WeldJoint.getLocalAnchorA() |
Vec2 |
RopeJoint.getLocalAnchorA() |
Vec2 |
RevoluteJoint.getLocalAnchorA() |
Vec2 |
PulleyJoint.getLocalAnchorA() |
Vec2 |
PrismaticJoint.getLocalAnchorA() |
Vec2 |
FrictionJoint.getLocalAnchorA() |
Vec2 |
DistanceJoint.getLocalAnchorA() |
Vec2 |
WheelJoint.getLocalAnchorB() |
Vec2 |
WeldJoint.getLocalAnchorB() |
Vec2 |
RopeJoint.getLocalAnchorB() |
Vec2 |
RevoluteJoint.getLocalAnchorB() |
Vec2 |
PulleyJoint.getLocalAnchorB() |
Vec2 |
PrismaticJoint.getLocalAnchorB() |
Vec2 |
FrictionJoint.getLocalAnchorB() |
Vec2 |
DistanceJoint.getLocalAnchorB() |
Vec2 |
WheelJoint.getLocalAxisA()
For serialization
|
Vec2 |
PrismaticJoint.getLocalAxisA() |
Vec2 |
MouseJoint.getTarget() |
| Modifier and Type | Method and Description |
|---|---|
void |
WheelJoint.getAnchorA(Vec2 argOut) |
void |
WeldJoint.getAnchorA(Vec2 argOut) |
void |
RopeJoint.getAnchorA(Vec2 argOut) |
void |
RevoluteJoint.getAnchorA(Vec2 argOut) |
void |
PulleyJoint.getAnchorA(Vec2 argOut) |
void |
PrismaticJoint.getAnchorA(Vec2 argOut) |
void |
MouseJoint.getAnchorA(Vec2 argOut) |
void |
MotorJoint.getAnchorA(Vec2 out) |
abstract void |
Joint.getAnchorA(Vec2 out)
get the anchor point on bodyA in world coordinates.
|
void |
GearJoint.getAnchorA(Vec2 argOut) |
void |
FrictionJoint.getAnchorA(Vec2 argOut) |
void |
DistanceJoint.getAnchorA(Vec2 argOut) |
void |
ConstantVolumeJoint.getAnchorA(Vec2 argOut) |
void |
WheelJoint.getAnchorB(Vec2 argOut) |
void |
WeldJoint.getAnchorB(Vec2 argOut) |
void |
RopeJoint.getAnchorB(Vec2 argOut) |
void |
RevoluteJoint.getAnchorB(Vec2 argOut) |
void |
PulleyJoint.getAnchorB(Vec2 argOut) |
void |
PrismaticJoint.getAnchorB(Vec2 argOut) |
void |
MouseJoint.getAnchorB(Vec2 argOut) |
void |
MotorJoint.getAnchorB(Vec2 out) |
abstract void |
Joint.getAnchorB(Vec2 out)
get the anchor point on bodyB in world coordinates.
|
void |
GearJoint.getAnchorB(Vec2 argOut) |
void |
FrictionJoint.getAnchorB(Vec2 argOut) |
void |
DistanceJoint.getAnchorB(Vec2 argOut) |
void |
ConstantVolumeJoint.getAnchorB(Vec2 argOut) |
void |
MotorJoint.getLinearOffset(Vec2 out)
Get the target linear offset, in frame A, in meters.
|
void |
WheelJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
WeldJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
RopeJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
RevoluteJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
PulleyJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
PrismaticJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
MouseJoint.getReactionForce(float invDt,
Vec2 argOut) |
void |
MotorJoint.getReactionForce(float inv_dt,
Vec2 out) |
abstract void |
Joint.getReactionForce(float inv_dt,
Vec2 out)
get the reaction force on body2 at the joint anchor in Newtons.
|
void |
GearJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
FrictionJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
DistanceJoint.getReactionForce(float inv_dt,
Vec2 argOut)
Get the reaction force given the inverse time step.
|
void |
ConstantVolumeJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
WeldJointDef.initialize(Body bA,
Body bB,
Vec2 anchor)
Initialize the bodies, anchors, and reference angle using a world anchor point.
|
void |
RevoluteJointDef.initialize(Body b1,
Body b2,
Vec2 anchor)
Initialize the bodies, anchors, and reference angle using the world anchor.
|
void |
FrictionJointDef.initialize(Body bA,
Body bB,
Vec2 anchor)
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world
axis.
|
void |
WheelJointDef.initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis) |
void |
PrismaticJointDef.initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis)
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world
axis.
|
void |
DistanceJointDef.initialize(Body b1,
Body b2,
Vec2 anchor1,
Vec2 anchor2)
Initialize the bodies, anchors, and length using the world anchors.
|
void |
PulleyJointDef.initialize(Body b1,
Body b2,
Vec2 ga1,
Vec2 ga2,
Vec2 anchor1,
Vec2 anchor2,
float r)
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
|
void |
MotorJoint.setLinearOffset(Vec2 linearOffset)
Set the target linear offset, in frame A, in meters.
|
void |
MouseJoint.setTarget(Vec2 target) |
| Modifier and Type | Field and Description |
|---|---|
Vec2 |
ParticleContact.normal
The normalized direction from A to B.
|
Vec2 |
ParticleBodyContact.normal
The normalized direction from the particle to the body.
|
Vec2 |
ParticleDef.position
The world position of the particle.
|
Vec2 |
ParticleDef.velocity
The linear velocity of the particle in world co-ordinates.
|
| Modifier and Type | Method and Description |
|---|---|
Vec2 |
ParticleGroup.getCenter() |
Vec2 |
ParticleGroupDef.getLinearVelocity() |
Vec2 |
ParticleGroup.getLinearVelocity() |
Vec2[] |
ParticleSystem.getParticlePositionBuffer() |
Vec2[] |
ParticleSystem.getParticleVelocityBuffer() |
Vec2 |
ParticleGroupDef.getPosition() |
Vec2 |
ParticleGroup.getPosition() |
| Modifier and Type | Method and Description |
|---|---|
void |
VoronoiDiagram.addGenerator(Vec2 center,
int tag) |
void |
ParticleSystem.raycast(ParticleRaycastCallback callback,
Vec2 point1,
Vec2 point2) |
void |
ParticleSystem.setParticlePositionBuffer(Vec2[] buffer,
int capacity) |
void |
ParticleSystem.setParticleVelocityBuffer(Vec2[] buffer,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
Vec2[] |
IWorldPool.getVec2Array(int argLength) |
Vec2 |
IWorldPool.popVec2() |
Vec2[] |
IWorldPool.popVec2(int num) |
| Modifier and Type | Method and Description |
|---|---|
Vec2[] |
Vec2Array.get(int argLength) |
protected Vec2[] |
Vec2Array.getInitializedArray(int argLength) |
| Modifier and Type | Method and Description |
|---|---|
Vec2[] |
DefaultWorldPool.getVec2Array(int argLength) |
Vec2 |
DefaultWorldPool.popVec2() |
Vec2[] |
DefaultWorldPool.popVec2(int argNum) |
Copyright © 2017. All rights reserved.