APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.physics.box2d

public Class WorldManifold

extends Object
Class Inheritance
Imports
com.badlogic.gdx.math.Vector2

This is used to compute the current state of a contact manifold.

Field Summary

Modifier and TypeField and Description
protected final Vector2
protected int
protected final Vector2[]
protected final float[]

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Vector2
getNormal()

Returns the normal of this manifold

public int
getNumberOfContactPoints()

Returns: the number of contact points

public Vector2[]
getPoints()

Returns the contact points of this manifold.

public float[]
getSeparations()

Returns the separations of this manifold, a negative value indicates overlap, in meters.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

normalback to summary
protected final Vector2 normal
numContactPointsback to summary
protected int numContactPoints
pointsback to summary
protected final Vector2[] points
separationsback to summary
protected final float[] separations

Constructor Detail

WorldManifoldback to summary
protected WorldManifold()

Method Detail

getNormalback to summary
public Vector2 getNormal()

Returns the normal of this manifold

getNumberOfContactPointsback to summary
public int getNumberOfContactPoints()
Returns:int

the number of contact points

getPointsback to summary
public Vector2[] getPoints()

Returns the contact points of this manifold. Use getNumberOfContactPoints to determine how many contact points there are (0,1 or 2)

getSeparationsback to summary
public float[] getSeparations()

Returns the separations of this manifold, a negative value indicates overlap, in meters. Use getNumberOfContactPoints to determine how many separations there are (0,1 or 2)