hgeIntersect Struct Reference

Intersection data structure. More...

#include <hgeIntersect.h>

List of all members.

Public Member Functions

hgeVector GetSurfaceVector (int i=0)
void SetResponseVector (hgeVector *velocity, float bounce=0.5f)

Public Attributes

bool collides
std::vector< hgeVector > points
std::vector< float > normals


Detailed Description

Stores information about an intersection between shapes, and provides routines to handle common tasks, like reacting to the intersection.

Member Function Documentation

hgeVector hgeIntersect::GetSurfaceVector ( int  i = 0  ) 

Parameters:
i Index value of the collision to fetch.
Returns:
Vector perpendicular to the surface of collision.

void hgeIntersect::SetResponseVector ( hgeVector *  velocity,
float  bounce = 0.5f 
)

Remarks:
Alters the given velocity vector to the appropriate response for a collision.


Member Data Documentation

Remarks:
If there was no collision at all, this is set to false.

std::vector<float> hgeIntersect::normals

Remarks:
normal(s) of each collision

std::vector<hgeVector> hgeIntersect::points

Remarks:
point(s) of collision


Generated on Wed Apr 29 12:56:50 2009 for Opal by  doxygen 1.5.8