com.cliffblaster.game.physics
Class Ray

java.lang.Object
  extended by com.cliffblaster.game.physics.Ray

public class Ray
extends java.lang.Object


Field Summary
 Vector3f direction
           
 Vector3f origin
           
 
Method Summary
 AABB getClosestIntersectingAABB(java.util.Collection<AABB> aabbs)
           
 AABB getClosestIntersectingAABB(java.util.Collection<AABB> aabbs, boolean ignoreUnpickable)
           
static Ray shootRay(Vector3f origin, Vector3f angles)
           
static Ray shootRayDirection(Vector3f origin, Vector3f direction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

origin

public Vector3f origin

direction

public Vector3f direction
Method Detail

shootRay

public static Ray shootRay(Vector3f origin,
                           Vector3f angles)

shootRayDirection

public static Ray shootRayDirection(Vector3f origin,
                                    Vector3f direction)

getClosestIntersectingAABB

public AABB getClosestIntersectingAABB(java.util.Collection<AABB> aabbs)

getClosestIntersectingAABB

public AABB getClosestIntersectingAABB(java.util.Collection<AABB> aabbs,
                                       boolean ignoreUnpickable)