com.badlogic.gdx.physics.box2d
Class ContactImpulse

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

public class ContactImpulse
extends Object

Contact impulses for reporting. Impulses are used instead of forces because sub-step forces may approach infinity for rigid body collisions. These match up one-to-one with the contact points in b2Manifold.

Author:
mzechner

Method Summary
 int getCount()
           
 float[] getNormalImpulses()
           
 float[] getTangentImpulses()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNormalImpulses

public float[] getNormalImpulses()

getTangentImpulses

public float[] getTangentImpulses()

getCount

public int getCount()


Copyright © 2013. All Rights Reserved.