00001
00002
00003
00004
00006
00011 #ifndef HGEINTERSECT__
00012 #define HGEINTERSECT__
00013
00014
00015 #include <vector>
00016
00017
00018 #include <hgevector.h>
00019
00021
00022
00029 struct hgeIntersect
00030 {
00032 bool collides;
00033
00035 std::vector<hgeVector> points;
00036
00038 std::vector<float> normals;
00039
00042 hgeVector GetSurfaceVector(int i = 0);
00043
00045 void SetResponseVector( hgeVector *velocity, float bounce = 0.5f );
00046
00047
00048 hgeIntersect() : collides(false) { }
00049 };
00050
00051 #endif