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,
Color3f color)
Draw a circle.
|
abstract void |
DebugDraw.drawPoint(Vec2 argPoint,
float argRadiusOnScreen,
Color3f argColor) |
void |
DebugDraw.drawPolygon(Vec2[] vertices,
int vertexCount,
Color3f color)
Draw a closed polygon provided in CCW order.
|
abstract void |
DebugDraw.drawSegment(Vec2 p1,
Vec2 p2,
Color3f color)
Draw a line segment.
|
abstract void |
DebugDraw.drawSolidCircle(Vec2 center,
float radius,
Vec2 axis,
Color3f color)
Draw a solid circle.
|
abstract void |
DebugDraw.drawSolidPolygon(Vec2[] vertices,
int vertexCount,
Color3f color)
Draw a solid closed polygon provided in CCW order.
|
void |
DebugDraw.drawString(Vec2 pos,
java.lang.String s,
Color3f 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.
|
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 |
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).
|
boolean |
DynamicTree.moveProxy(int proxyId,
AABB aabb,
Vec2 displacement) |
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 |
ChainShape.m_nextVertex |
Vec2[] |
PolygonShape.m_normals
The normals of the shape.
|
Vec2 |
CircleShape.m_p |
Vec2 |
ChainShape.m_prevVertex |
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[] |
ChainShape.m_vertices |
Vec2[] |
PolygonShape.m_vertices
The vertices of the shape.
|
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) |
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.
|
boolean |
EdgeShape.testPoint(Transform xf,
Vec2 p) |
boolean |
ChainShape.testPoint(Transform xf,
Vec2 p) |
boolean |
PolygonShape.testPoint(Transform xf,
Vec2 p) |
abstract boolean |
Shape.testPoint(Transform xf,
Vec2 p)
Test a point for containment in this shape.
|
boolean |
CircleShape.testPoint(Transform transform,
Vec2 p) |
Modifier and Type | Field and Description |
---|---|
Vec2 |
Sweep.c
Center world positions
|
Vec2 |
Sweep.c0
Center world positions
|
Vec2 |
OBBViewportTransform.OBB.center |
Vec2 |
Mat22.ex |
Vec2 |
OBBViewportTransform.OBB.extents |
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 |
---|---|
Vec2 |
Vec2.abs()
Return a new vector that has positive components.
|
static Vec2 |
Vec2.abs(Vec2 a) |
Vec2 |
Vec2.add(Vec2 v)
Return the sum of this vector and another; does not alter either one.
|
Vec2 |
Vec2.addLocal(float x,
float 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.
|
static Vec2 |
MathUtils.clamp(Vec2 a,
Vec2 low,
Vec2 high) |
Vec2 |
Vec2.clone()
Return a copy of this vector.
|
static Vec2 |
Vec2.cross(float s,
Vec2 a) |
static Vec2 |
Vec2.cross(Vec2 a,
float s) |
Vec2 |
OBBViewportTransform.getCenter() |
Vec2 |
IViewportTransform.getCenter()
center of the viewport.
|
Vec2 |
OBBViewportTransform.getExtents() |
Vec2 |
IViewportTransform.getExtents()
This is the half-width and half-height.
|
static Vec2 |
Vec2.max(Vec2 a,
Vec2 b) |
static Vec2 |
Vec2.min(Vec2 a,
Vec2 b) |
Vec2 |
Vec2.mul(float a)
Return this vector multiplied by a scalar; does not alter this vector.
|
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) |
Vec2 |
Vec2.mulLocal(float a)
Multiply this vector by a number and return result - alters this vector.
|
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 |
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.set(float x,
float y)
Set the vector component-wise.
|
Vec2 |
Vec2.set(Vec2 v)
Set this vector to another vector.
|
Vec2 |
Vec2.skew()
Get the skew vector such that dot(skew_vec, other) == cross(vec, other)
|
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.
|
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.
|
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.
|
static Vec2 |
MathUtils.clamp(Vec2 a,
Vec2 low,
Vec2 high) |
static void |
MathUtils.clampToOut(Vec2 a,
Vec2 low,
Vec2 high,
Vec2 dest) |
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) |
static float |
MathUtils.distance(Vec2 v1,
Vec2 v2) |
static float |
MathUtils.distanceSquared(Vec2 v1,
Vec2 v2) |
static float |
Vec2.dot(Vec2 a,
Vec2 b) |
void |
OBBViewportTransform.getScreenToWorld(Vec2 argScreen,
Vec2 argWorld) |
void |
IViewportTransform.getScreenToWorld(Vec2 argScreen,
Vec2 argWorld)
takes the screen coordinates (argScreen) and puts the
corresponding world coordinates in argWorld.
|
void |
OBBViewportTransform.getScreenVectorToWorld(Vec2 argScreen,
Vec2 argWorld) |
void |
IViewportTransform.getScreenVectorToWorld(Vec2 argScreen,
Vec2 argWorld)
Transforms the given directional screen vector back to
the world direction.
|
void |
OBBViewportTransform.getWorldToScreen(Vec2 argWorld,
Vec2 argScreen) |
void |
IViewportTransform.getWorldToScreen(Vec2 argWorld,
Vec2 argScreen)
takes the world coordinate (argWorld) puts the corresponding
screen coordinate in argScreen.
|
void |
OBBViewportTransform.getWorldVectorToScreen(Vec2 argWorld,
Vec2 argScreen) |
void |
IViewportTransform.getWorldVectorToScreen(Vec2 argWorld,
Vec2 argScreen)
Transforms the given directional vector by the
viewport transform (not positional)
|
void |
Rot.getXAxis(Vec2 xAxis) |
void |
Rot.getYAxis(Vec2 yAxis) |
static Vec2 |
Vec2.max(Vec2 a,
Vec2 b) |
static void |
Vec2.maxToOut(Vec2 a,
Vec2 b,
Vec2 out) |
static Vec2 |
Vec2.min(Vec2 a,
Vec2 b) |
static void |
Vec2.minToOut(Vec2 a,
Vec2 b,
Vec2 out) |
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 |
Rot.mulToOut(Rot 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 |
Rot.mulToOutUnsafe(Rot 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 |
Rot.mulTrans(Rot 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 |
Rot.mulTransUnsafe(Rot q,
Vec2 v,
Vec2 out) |
static void |
Vec2.negateToOut(Vec2 a,
Vec2 out) |
Vec2 |
Vec2.set(Vec2 v)
Set this vector to another vector.
|
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 |
OBBViewportTransform.setCenter(Vec2 argPos) |
void |
IViewportTransform.setCenter(Vec2 argPos)
sets the center of the viewport.
|
void |
OBBViewportTransform.setExtents(Vec2 argExtents) |
void |
IViewportTransform.setExtents(Vec2 argExtents)
This sets the half-width and half-height.
|
void |
Vec2.skew(Vec2 out)
Get the skew vector such that dot(skew_vec, other) == cross(vec, other)
|
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) |
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 |
---|
Mat22(Vec2 c1,
Vec2 c2)
Create a matrix with given vectors as columns.
|
Transform(Vec2 _position,
Rot _R)
Initialize using a position vector and a rotation matrix.
|
Vec2(Vec2 toCopy) |
Modifier and Type | Field and Description |
---|---|
Vec2 |
BodyDef.linearVelocity
The linear velocity of the body in world co-ordinates.
|
Vec2 |
Body.m_force |
Vec2 |
Body.m_linearVelocity |
Vec2 |
BodyDef.position
The world position of the body.
|
Modifier and Type | Method and Description |
---|---|
Vec2 |
World.getGravity()
Get the global gravity vector.
|
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 |
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)
Apply an impulse at a point.
|
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(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 |
Body.setLinearVelocity(Vec2 v)
Set the linear velocity of the center of mass.
|
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) |
boolean |
Fixture.testPoint(Vec2 p)
Test a point for containment in this fixture.
|
Constructor and Description |
---|
World(Vec2 gravity)
Construct a world object.
|
World(Vec2 gravity,
IWorldPool pool)
Construct a world object.
|
World(Vec2 gravity,
IWorldPool argPool,
BroadPhaseStrategy broadPhaseStrategy) |
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 |
PrismaticJointDef.localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
DistanceJointDef.localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
RevoluteJointDef.localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
RopeJointDef.localAnchorA
The local anchor point relative to bodyA's origin.
|
Vec2 |
PulleyJointDef.localAnchorA
The local anchor point relative to bodyA's origin.
|
Vec2 |
WeldJointDef.localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
FrictionJointDef.localAnchorA
The local anchor point relative to bodyA's origin.
|
Vec2 |
WheelJointDef.localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
PrismaticJointDef.localAnchorB
The local anchor point relative to body2's origin.
|
Vec2 |
DistanceJointDef.localAnchorB
The local anchor point relative to body2's origin.
|
Vec2 |
RevoluteJointDef.localAnchorB
The local anchor point relative to body2's origin.
|
Vec2 |
RopeJointDef.localAnchorB
The local anchor point relative to bodyB's origin.
|
Vec2 |
PulleyJointDef.localAnchorB
The local anchor point relative to bodyB's origin.
|
Vec2 |
WeldJointDef.localAnchorB
The local anchor point relative to body2's origin.
|
Vec2 |
FrictionJointDef.localAnchorB
The local anchor point relative to bodyB's origin.
|
Vec2 |
WheelJointDef.localAnchorB
The local anchor point relative to body2's origin.
|
Vec2 |
PrismaticJointDef.localAxisA
The local translation axis in body1.
|
Vec2 |
WheelJointDef.localAxisA
The local translation axis in body1.
|
protected Vec2 |
PrismaticJoint.m_localAnchorA |
protected Vec2 |
RevoluteJoint.m_localAnchorA |
protected Vec2 |
PrismaticJoint.m_localAnchorB |
protected Vec2 |
RevoluteJoint.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 |
PulleyJoint.getLocalAnchorA() |
Vec2 |
RopeJoint.getLocalAnchorA() |
Vec2 |
FrictionJoint.getLocalAnchorA() |
Vec2 |
DistanceJoint.getLocalAnchorA() |
Vec2 |
PrismaticJoint.getLocalAnchorA() |
Vec2 |
RevoluteJoint.getLocalAnchorA() |
Vec2 |
WeldJoint.getLocalAnchorA() |
Vec2 |
WheelJoint.getLocalAnchorA() |
Vec2 |
PulleyJoint.getLocalAnchorB() |
Vec2 |
RopeJoint.getLocalAnchorB() |
Vec2 |
FrictionJoint.getLocalAnchorB() |
Vec2 |
DistanceJoint.getLocalAnchorB() |
Vec2 |
PrismaticJoint.getLocalAnchorB() |
Vec2 |
RevoluteJoint.getLocalAnchorB() |
Vec2 |
WeldJoint.getLocalAnchorB() |
Vec2 |
WheelJoint.getLocalAnchorB() |
Vec2 |
PrismaticJoint.getLocalAxisA() |
Vec2 |
WheelJoint.getLocalAxisA()
For serialization
|
Vec2 |
MouseJoint.getTarget() |
Modifier and Type | Method and Description |
---|---|
void |
GearJoint.getAnchorA(Vec2 argOut) |
void |
PulleyJoint.getAnchorA(Vec2 argOut) |
void |
RopeJoint.getAnchorA(Vec2 argOut) |
void |
FrictionJoint.getAnchorA(Vec2 argOut) |
void |
DistanceJoint.getAnchorA(Vec2 argOut) |
void |
PrismaticJoint.getAnchorA(Vec2 argOut) |
void |
RevoluteJoint.getAnchorA(Vec2 argOut) |
void |
MouseJoint.getAnchorA(Vec2 argOut) |
abstract void |
Joint.getAnchorA(Vec2 out)
get the anchor point on bodyA in world coordinates.
|
void |
WeldJoint.getAnchorA(Vec2 argOut) |
void |
ConstantVolumeJoint.getAnchorA(Vec2 argOut)
No-op
|
void |
WheelJoint.getAnchorA(Vec2 argOut) |
void |
GearJoint.getAnchorB(Vec2 argOut) |
void |
PulleyJoint.getAnchorB(Vec2 argOut) |
void |
RopeJoint.getAnchorB(Vec2 argOut) |
void |
FrictionJoint.getAnchorB(Vec2 argOut) |
void |
DistanceJoint.getAnchorB(Vec2 argOut) |
void |
PrismaticJoint.getAnchorB(Vec2 argOut) |
void |
RevoluteJoint.getAnchorB(Vec2 argOut) |
void |
MouseJoint.getAnchorB(Vec2 argOut) |
abstract void |
Joint.getAnchorB(Vec2 out)
get the anchor point on bodyB in world coordinates.
|
void |
WeldJoint.getAnchorB(Vec2 argOut) |
void |
ConstantVolumeJoint.getAnchorB(Vec2 argOut)
No-op
|
void |
WheelJoint.getAnchorB(Vec2 argOut) |
void |
GearJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
PulleyJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
RopeJoint.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 |
PrismaticJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
RevoluteJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
MouseJoint.getReactionForce(float invDt,
Vec2 argOut) |
abstract void |
Joint.getReactionForce(float inv_dt,
Vec2 out)
get the reaction force on body2 at the joint anchor in Newtons.
|
void |
WeldJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
ConstantVolumeJoint.getReactionForce(float inv_dt,
Vec2 argOut)
No-op
|
void |
WheelJoint.getReactionForce(float inv_dt,
Vec2 argOut) |
void |
RevoluteJointDef.initialize(Body b1,
Body b2,
Vec2 anchor)
Initialize the bodies, anchors, and reference angle using the world
anchor.
|
void |
WeldJointDef.initialize(Body bA,
Body bB,
Vec2 anchor)
Initialize the bodies, anchors, and reference angle using a world
anchor point.
|
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 |
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 |
WheelJointDef.initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis) |
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 |
MouseJoint.setTarget(Vec2 target) |
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.