|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.intersection.CollisionResults
public abstract class CollisionResults
CollisionResults
stores the results of a collision test by
storing an ArrayList of CollisionData.
Constructor Summary | |
---|---|
CollisionResults()
Constructor instantiates a new PickResults object. |
Method Summary | |
---|---|
abstract void |
addCollision(Geometry s,
Geometry t)
addCollision is an abstract method whose intent is the
subclass determines what to do when two Geometry object's bounding
volumes are determined to intersect. |
void |
addCollisionData(CollisionData col)
addCollisionData places a new CollisionData
object into the results list. |
void |
clear()
clear clears the list of all CollisionData. |
CollisionData |
getCollisionData(int i)
getCollisionData retrieves a CollisionData from a specific
index. |
int |
getNumber()
getNumber retrieves the number of collisions that have
been placed in the results. |
abstract void |
processCollisions()
processCollisions is an abstract method whose intent is
the subclass defines how to process the collision data that has been
collected since the last clear. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollisionResults()
PickResults
object.
Method Detail |
---|
public void addCollisionData(CollisionData col)
addCollisionData
places a new CollisionData
object into the results list.
col
- The collision data to be placed in the results list.public int getNumber()
getNumber
retrieves the number of collisions that have
been placed in the results.
public CollisionData getCollisionData(int i)
getCollisionData
retrieves a CollisionData from a specific
index.
i
- the index requested.
public void clear()
clear
clears the list of all CollisionData.
public abstract void addCollision(Geometry s, Geometry t)
addCollision
is an abstract method whose intent is the
subclass determines what to do when two Geometry object's bounding
volumes are determined to intersect.
s
- the first Geometry that intersects.t
- the second Geometry that intersects.public abstract void processCollisions()
processCollisions
is an abstract method whose intent is
the subclass defines how to process the collision data that has been
collected since the last clear.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |