RayInfo Struct Reference

#include <sceneObject.h>

Inheritance diagram for RayInfo:

Inheritance graph
[legend]
List of all members.

Detailed Description

Extension of the collision structure to allow use with raycasting.

See also:
Collision


Public Member Functions

void setContactPoint (const Point3F &start, const Point3F &end)
 Set the point of intersection according to t and the given ray.

Public Attributes

F32 t


Member Function Documentation

void RayInfo::setContactPoint ( const Point3F start,
const Point3F end 
) [inline]

Set the point of intersection according to t and the given ray.

Several pieces of code will not use ray information but rather rely on contact points directly, so it is a good thing to always set this in castRay functions.


Member Data Documentation