|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.physics.collision.Collision
public class Collision
Information about a collision : position, normal, depth, geoms that collided
| Constructor Summary | |
|---|---|
protected |
Collision()
Creates a new collision information object. |
|
Collision(org.openmali.vecmath2.Point3f pos,
org.openmali.vecmath2.Vector3f normal,
float depth,
Collideable c1,
Collideable c2)
Creates a new collision information object. |
| Method Summary | |
|---|---|
static Collision |
fromPool()
|
static Collision |
fromPool(org.openmali.vecmath2.Point3f pos,
org.openmali.vecmath2.Vector3f normal,
float depth,
Collideable c1,
Collideable c2)
|
Collideable |
getCollideable1()
The first collideable involved in the collision |
Collideable |
getCollideable2()
The second collideable involved in the collision |
float |
getDepth()
The penetration depth of the collision. |
org.openmali.vecmath2.Vector3f |
getInvertedNormal()
The "direction" of this collision. |
org.openmali.vecmath2.Vector3f |
getNormal()
The "direction" of this collision. |
org.openmali.vecmath2.Point3f |
getPosition()
The position of the contact. |
org.openmali.vecmath2.Vector3f |
getScaledInvertedNormal()
The "direction" of this collision. |
org.openmali.vecmath2.Vector3f |
getScaledNormal()
The "direction" of this collision. |
protected void |
set(org.openmali.vecmath2.Point3f pos,
org.openmali.vecmath2.Vector3f normal,
float depth,
Collideable c1,
Collideable c2)
Sets this instance's a information. |
static void |
toPool(Collision collision)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Collision(org.openmali.vecmath2.Point3f pos,
org.openmali.vecmath2.Vector3f normal,
float depth,
Collideable c1,
Collideable c2)
pos - contact positionnormal - normal vectordepth - penetration depthc1 - the colliding object n°1c2 - the colliding object n°2protected Collision()
| Method Detail |
|---|
public final Collideable getCollideable1()
public final Collideable getCollideable2()
public final org.openmali.vecmath2.Point3f getPosition()
public final org.openmali.vecmath2.Vector3f getNormal()
public final org.openmali.vecmath2.Vector3f getScaledNormal()
public final org.openmali.vecmath2.Vector3f getInvertedNormal()
public final org.openmali.vecmath2.Vector3f getScaledInvertedNormal()
public final float getDepth()
public java.lang.String toString()
toString in class java.lang.Object
protected final void set(org.openmali.vecmath2.Point3f pos,
org.openmali.vecmath2.Vector3f normal,
float depth,
Collideable c1,
Collideable c2)
pos - contact positionnormal - normal vectordepth - penetration depthc1 - the colliding object n°1c2 - the colliding object n°2
public static final Collision fromPool(org.openmali.vecmath2.Point3f pos,
org.openmali.vecmath2.Vector3f normal,
float depth,
Collideable c1,
Collideable c2)
public static final Collision fromPool()
public static final void toPool(Collision collision)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||