2015-07-26 21:39:49 +00:00
|
|
|
#ifndef CCOLLISIONNODE_H
|
|
|
|
#define CCOLLISIONNODE_H
|
|
|
|
|
|
|
|
#include "CSceneNode.h"
|
2015-09-26 22:55:14 +00:00
|
|
|
#include <Resource/CCollisionMeshGroup.h>
|
2015-07-26 21:39:49 +00:00
|
|
|
|
|
|
|
class CCollisionNode : public CSceneNode
|
|
|
|
{
|
2015-09-26 22:55:14 +00:00
|
|
|
CCollisionMeshGroup *mpCollision;
|
|
|
|
CToken mCollisionToken;
|
2015-07-26 21:39:49 +00:00
|
|
|
|
|
|
|
public:
|
2015-09-26 22:55:14 +00:00
|
|
|
CCollisionNode(CSceneManager *pScene, CSceneNode *pParent = 0, CCollisionMeshGroup *pCollision = 0);
|
2015-07-26 21:39:49 +00:00
|
|
|
ENodeType NodeType();
|
|
|
|
void AddToRenderer(CRenderer *pRenderer);
|
|
|
|
void Draw(ERenderOptions Options);
|
|
|
|
void DrawAsset(ERenderOptions Options, u32 asset);
|
2015-09-26 22:55:14 +00:00
|
|
|
SRayIntersection RayNodeIntersectTest(const CRay &Ray, u32 AssetID, ERenderOptions options);
|
|
|
|
void SetCollision(CCollisionMeshGroup *pCollision);
|
2015-07-26 21:39:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CCOLLISIONNODE_H
|