org.ode4j.ode
Interface DRay

All Superinterfaces:
DGeom

public interface DRay
extends DGeom


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ode4j.ode.DGeom
DGeom.COLLIDER_MERGE_CONTACTS_VALUE, DGeom.CONTROL_CLASS, DGeom.CONTROL_CODE, DGeom.DataValue, DGeom.DNearCallback
 
Field Summary
 
Fields inherited from interface org.ode4j.ode.DGeom
dBoxClass, dCapsuleClass, dConvexClass, dCylinderClass, dFirstSpaceClass, dFirstUserClass, dGeomNumClasses, dGeomTransformClass, dHashSpaceClass, dHeightfieldClass, dLastSpaceClass, dLastUserClass, dMaxUserClasses, dPlaneClass, dQuadTreeSpaceClass, dRayClass, dSimpleSpaceClass, dSphereClass, dSweepAndPruneSpaceClass, dTriMeshClass
 
Method Summary
 void get(DVector3 start, DVector3 dir)
          Get origin and direction.
 boolean getBackfaceCull()
           
 boolean getClosestHit()
           
 DVector3C getDirection()
          Get direction.
 boolean getFirstContact()
           
 double getLength()
           
 boolean getParamBackfaceCull()
           
 boolean getParamFirstContact()
           
 void set(double px, double py, double pz, double dx, double dy, double dz)
          Set origin and direction.
 void set(DVector3C p, DVector3C d)
          Set origin and direction.
 void setClosestHit(boolean closestHit)
           
 void setLength(double length)
           
 void setParams(boolean firstContact, boolean backfaceCull)
          Set/get ray flags that influence ray collision detection.
 
Methods inherited from interface org.ode4j.ode.DGeom
clearOffset, collide2, copyOffsetPosition, copyOffsetRotation, copyPosition, copyRotation, destroy, DESTRUCTOR, disable, enable, getAABB, getBody, getCategoryBits, getClassID, getCollideBits, getData, getOffsetPosition, getOffsetQuaternion, getOffsetRotation, getPosition, getPosRelPoint, getQuaternion, getRelPointPos, getRotation, getSpace, isEnabled, isOffset, lowLevelControl, setBody, setCategoryBits, setCollideBits, setData, setOffsetPosition, setOffsetQuaternion, setOffsetRotation, setOffsetWorldPosition, setOffsetWorldQuaternion, setOffsetWorldRotation, setPosition, setPosition, setQuaternion, setRotation, vectorFromWorld, vectorToWorld
 

Method Detail

setLength

void setLength(double length)

getLength

double getLength()

set

void set(double px,
         double py,
         double pz,
         double dx,
         double dy,
         double dz)
Set origin and direction. Origin is the same as setPosition().


set

void set(DVector3C p,
         DVector3C d)
Set origin and direction. Origin is the same as setPosition().


get

void get(DVector3 start,
         DVector3 dir)
Get origin and direction. Origin is the same as getPosition(). Direction is the same as getDirection().


getDirection

DVector3C getDirection()
Get direction. Direction is the same as the 2nd parameter in get().


setParams

void setParams(boolean firstContact,
               boolean backfaceCull)
Set/get ray flags that influence ray collision detection. These flags are currently only noticed by the trimesh collider, because they can make a major differences there.


getFirstContact

boolean getFirstContact()

getBackfaceCull

boolean getBackfaceCull()

getParamFirstContact

boolean getParamFirstContact()

getParamBackfaceCull

boolean getParamBackfaceCull()

setClosestHit

void setClosestHit(boolean closestHit)

getClosestHit

boolean getClosestHit()