# class neSensor

void SetLineSensor(const neV3 & pos, const neV3 dir);
neV3 GetLineNormal();

Specify the position and vector of the line representing the sensor object. Sensors are directed lines which are attached to a body. When the line representing the sensor intersects with other bodys' geometries, the intersection information can be retrieved and used by the application. To retrieve the intersection information, use the GetLineNormal, GetDetectDepth, GetDetectNormal, GetDetectContactPoint, GetDetectRigidBody, GetDetectAnimatedBody, and the GetDetectMaterial functions.

void SetUserData(u32 userData);
u32 GetUserData();

Specify and retrieve the user data associate with the sensor object.

f32 GetDetectDepth();
neV3 GetDetectNormal();
neV3 GetDetectContactPoint();
neRigidBody * GetDetectRigidBody();
neAnimatedBody * GetDetectAnimatedBody();
s32 GetDetectMaterial();

Use these functions to retrieve the current intersection information of the sensor. If GetDetectDepth is <= 0.0, then the sensor does not intersect with other geometries and all other values returned by GetDetectXXX functions are invalid.