Tao.Ode SDK Documentation

Ode.dGeomRaySet Method 

Set the starting position (px,py,pz) and direction (dx,dy,dz) of the given ray. The ray's rotation matrix will be adjusted so that the local Z-axis is aligned with the direction. Note that this does not adjust the ray's length.

[Visual Basic]
Public Shared Sub dGeomRaySet( _
   ByVal ray As IntPtr, _
   ByVal px As Single, _
   ByVal py As Single, _
   ByVal pz As Single, _
   ByVal dx As Single, _
   ByVal dy As Single, _
   ByVal dz As Single _
)
[C#]
public static void dGeomRaySet(
   IntPtr ray,
   float px,
   float py,
   float pz,
   float dx,
   float dy,
   float dz
);

Parameters

ray
the ray to set
px
x-coordinate of the starting position
py
y-coordinate of the starting position
pz
z-coordinate of the starting position
dx
x-coordinate of the direction
dy
y-coordinate of the direction
dz
z-coordinate of the direction

See Also

Ode Class | Tao.Ode Namespace