com.badlogic.gdx.physics.box2d
Class WorldManifold
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
normal
protected final Vector2 normal
points
protected final Vector2[] points
numContactPoints
protected int numContactPoints
WorldManifold
protected WorldManifold()
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
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)