Revision 1378,
547 bytes
checked in by giegl, 18 years ago
(diff) |
GTPD - Jungle Rumble - integrate into GTP SVN structure
|
Rev | Line | |
---|
[1378] | 1 | #pragma once
|
---|
| 2 | #include "object3d.h"
|
---|
| 3 | #include "node.h"
|
---|
| 4 | #include "NxPhysics.h"
|
---|
| 5 |
|
---|
| 6 | class Box :
|
---|
| 7 | public Object3d
|
---|
| 8 | {
|
---|
| 9 | public:
|
---|
| 10 | Box(void);
|
---|
| 11 | ~Box(void);
|
---|
| 12 |
|
---|
| 13 | void setDimension(float _width, float _height, float _depth);
|
---|
| 14 | void generatePhysicMesh(int type=0);
|
---|
| 15 |
|
---|
| 16 | float halfWidth;
|
---|
| 17 | float halfHeight;
|
---|
| 18 | float halfDepth;
|
---|
| 19 |
|
---|
| 20 | protected:
|
---|
| 21 | NxBoxShapeDesc boxDesc;
|
---|
| 22 |
|
---|
| 23 | const static DWORD FVF_Flags = D3DFVF_XYZ;
|
---|
| 24 |
|
---|
| 25 | struct Vertex
|
---|
| 26 | {
|
---|
| 27 | Vertex(float _x, float _y, float _z)
|
---|
| 28 | {
|
---|
| 29 | x = _x;
|
---|
| 30 | y = _y;
|
---|
| 31 | z = _z;
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | float x, y, z;
|
---|
| 35 | };
|
---|
| 36 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.