|
Jazz3D API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sygem.jazz3d3.HitPoint
Utility class for Ray-based collision detection. HitPoint holds details of the last known collision - no more than that.
NOTE: There is no constructor - all the methods are static
so you never create an instance of a HitPoint, just call the methods
directly.
World.pick(Vertex, Vertex, int)
Method Summary | |
static int |
getFaceId()
Gets the number of the face the ray collided with. |
static Vertex |
getNormalVertex()
Gets a Vertex representing the normal of the collided face. |
static double |
getNormalX()
Gets the X component of the face normal. |
static double |
getNormalY()
Gets the Y component of the face normal. |
static double |
getNormalZ()
Gets the Z component of the face normal. |
static int |
getObjectId()
Gets the ID of the object the ray collided with. |
static java.lang.String |
getObjectName()
Gets the name of the object the ray collided with. |
static double |
getT()
Returns the value of 't' at the collision point. |
static Vertex |
getVertex()
Gets the exact position of the last collision. |
static double |
getX()
Get the X position of the last collision. |
static double |
getY()
Get the Y position of the last collision. |
static double |
getZ()
Get the Z position of the last collision. |
static void |
setRecordNormals(boolean record)
Sets whether or not face normals should be stored |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final int getFaceId()
Object3d.getFace(int)
public static final int getObjectId()
World.getObject(int)
public static final java.lang.String getObjectName()
World.getObject(String)
public static final Vertex getVertex()
Vertex
public static final double getX()
public static final double getY()
public static final double getZ()
public static final double getT()
public static final Vertex getNormalVertex()
Vertex
public static final double getNormalX()
public static final double getNormalY()
public static final double getNormalZ()
public static final void setRecordNormals(boolean record)
record
- True if face normals should be recorded, false if not
|
©2001 SyGem Software |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |