#ifndef CCOLLISIONNODE_H #define CCOLLISIONNODE_H #include "CSceneNode.h" #include class CCollisionNode : public CSceneNode { CCollisionMeshGroup *mpCollision; CToken mCollisionToken; public: CCollisionNode(CSceneManager *pScene, CSceneNode *pParent = 0, CCollisionMeshGroup *pCollision = 0); ENodeType NodeType(); void AddToRenderer(CRenderer *pRenderer, const CFrustumPlanes& frustumPlanes); void Draw(ERenderOptions Options); void DrawAsset(ERenderOptions Options, u32 asset); SRayIntersection RayNodeIntersectTest(const CRay &Ray, u32 AssetID, ERenderOptions options); void SetCollision(CCollisionMeshGroup *pCollision); }; #endif // CCOLLISIONNODE_H