Class: dgeomray

A ray is different from all the other geom classes in that it does not represent a solid object. It is an infinitely thin line that starts from the geom's position and extends in the direction of the geom's local Z-axis. Calling dCollide between a ray and another geom will result in at most one contact point. Rays have their own conventions for the contact information in the dContactGeom structure (thus it is not useful to create contact joints from this information):

Hierarchy

o-+ ode
  o-+ dgeom
    o-+ dgeomray

Methods:

Method overview:


new ([float length],[dspace])
returns: (dgeomray)
Create a ray geom of the given length, and return its ID. If space is given, insert it into that space.
get (dgeomray)
returns: (float x,y,z, dx,dy,dz)
returns position and normalized direction of the ray
length (dgeomray,[float len])
returns: ([float len])
sets/gets length of ray
set (dgeomray,float x,y,z, dx,dy,dz)
returns: ()
set position and direction of ray in space. The length of the ray will NOT be changed by using this function.

Inherited Methods:

From dgeom

body, category, delete, disabledspace, enabledspace, fdirnormal, fdirpriority, getcontactinfo, local2world, maxcontactinfo, maxcontacts, motion1, motion2, nocontactgenerator, pos, rotaxis, rotdeg, rotrad, setcategory, surfaceid, test, testnear, transformer, world2local