libgdx API

com.badlogic.gdx.physics.box2d
Class WorldManifold

java.lang.Object
  extended by com.badlogic.gdx.physics.box2d.WorldManifold

public class WorldManifold
extends java.lang.Object

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


Field Summary
protected  Vector2 normal
           
protected  int numContactPoints
           
protected  Vector2[] points
           
 
Constructor Summary
protected WorldManifold()
           
 
Method Summary
 Vector2 getNormal()
          Returns the normal of this manifold
 int getNumberOfContactPoints()
           
 Vector2[] getPoints()
          Returns the contact points of this manifold.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

normal

protected final Vector2 normal

points

protected final Vector2[] points

numContactPoints

protected int numContactPoints
Constructor Detail

WorldManifold

protected WorldManifold()
Method Detail

getNormal

public Vector2 getNormal()
Returns the normal of this manifold


getPoints

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


getNumberOfContactPoints

public int getNumberOfContactPoints()
Returns:
the number of contact points

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)