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();
|
2015-11-25 21:37:34 +00:00
|
|
|
void AddToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo);
|
2015-11-26 10:42:42 +00:00
|
|
|
void Draw(ERenderOptions Options, const SViewInfo& ViewInfo);
|
2015-11-25 21:37:34 +00:00
|
|
|
SRayIntersection RayNodeIntersectTest(const CRay &Ray, u32 AssetID, const SViewInfo& ViewInfo);
|
2015-09-26 22:55:14 +00:00
|
|
|
void SetCollision(CCollisionMeshGroup *pCollision);
|
2015-07-26 21:39:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CCOLLISIONNODE_H
|