com.annahid.libs.artenus.physics
CollisionInfo
Contains information about a collision. An instance of this class is passed to the
onCollision method of the
CollisionListener
interface per each pair of colliding
bodies. public final class CollisionInfo
Field Summary
Modifier and Type | Field and Description |
---|---|
public | body1 Holds the first body involved in the collision. |
public | body2 Holds the second body involved in the collision. |
public | impulseCount Holds the number of impulses included in this collision. |
public | normalImpulses Contains normal impulses for the collision. |
public | tangentImpulses Contains tangent impulses for the collision. |
public | tangentSpeed Holds the tangent relative speed of colliding bodies. |
Method Summary
Methods inherited from java.lang.Object
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
, wait
, wait
Field Detail
body1 |
---|
public body1 Holds the first body involved in the collision. |
body2 |
---|
public body2 Holds the second body involved in the collision. |
impulseCount |
---|
public impulseCount Holds the number of impulses included in this collision. |
normalImpulses |
---|
public normalImpulses Contains normal impulses for the collision. |
tangentImpulses |
---|
public tangentImpulses Contains tangent impulses for the collision. |
tangentSpeed |
---|
public tangentSpeed Holds the tangent relative speed of colliding bodies. |