1
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3
* OPCODE - Optimized Collision Detection
4
* Copyright (C) 2001 Pierre Terdiman
5
* Homepage: http://www.codercorner.com/Opcode.htm
7
* OPCODE modifications for scaled model support (and other things)
8
* Copyright (C) 2004 Gilvan Maia (gilvan 'at' vdl.ufc.br)
9
* Check http://www.vdl.ufc.br/gilvan/coll/opcode/index.htm for updates.
11
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
13
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15
* Contains code for OPCODE models.
17
* \author Pierre Terdiman
18
* \date March, 20, 2001
20
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
22
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
24
#ifndef __OPC_MODEL_H__
25
#define __OPC_MODEL_H__
27
class Model : public BaseModel
30
// Constructor/Destructor
34
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
36
* Builds a collision model.
37
* \param create [in] model creation structure
38
* \return true if success
40
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
41
override(BaseModel) bool Build(const OPCODECREATE& create);
43
#ifdef __MESHMERIZER_H__
44
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
46
* Gets the collision hull.
47
* \return the collision hull if it exists
49
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
50
inline_ const CollisionHull* GetHull() const { return mHull; }
51
#endif // __MESHMERIZER_H__
53
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
55
* Gets the number of bytes used by the tree.
56
* \return amount of bytes used
58
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
59
override(BaseModel) udword GetUsedBytes() const;
62
#ifdef __MESHMERIZER_H__
63
CollisionHull* mHull; //!< Possible convex hull
64
#endif // __MESHMERIZER_H__
69
#endif //__OPC_MODEL_H__