Line | |
---|
1 | #ifndef _SCENEQUERY_H__
|
---|
2 | #define _SCENEQUERY_H__
|
---|
3 |
|
---|
4 | #include "common.h"
|
---|
5 | #include "AxisAlignedBox3.h"
|
---|
6 |
|
---|
7 | namespace CHCDemo
|
---|
8 | {
|
---|
9 |
|
---|
10 | /** A simple class that computes the first intersection of a horizontal ray with
|
---|
11 | the scene. Can be used to "drop" objects in the scene.
|
---|
12 | */
|
---|
13 | class SceneQuery
|
---|
14 | {
|
---|
15 | public:
|
---|
16 |
|
---|
17 | SceneQuery(const AxisAlignedBox3 &sceneBox);
|
---|
18 |
|
---|
19 | bool CalcIntersection(Vector3 &pt);
|
---|
20 |
|
---|
21 | protected:
|
---|
22 |
|
---|
23 | void Prepare();
|
---|
24 |
|
---|
25 |
|
---|
26 | ///////////
|
---|
27 |
|
---|
28 | AxisAlignedBox3 mSceneBox;
|
---|
29 | };
|
---|
30 |
|
---|
31 | }
|
---|
32 |
|
---|
33 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.