mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-28 16:05:51 +00:00
21 lines
691 B
C++
21 lines
691 B
C++
#ifndef CCOLLISIONNODE_H
|
|
#define CCOLLISIONNODE_H
|
|
|
|
#include "CSceneNode.h"
|
|
#include "Core/Resource/CCollisionMeshGroup.h"
|
|
|
|
class CCollisionNode : public CSceneNode
|
|
{
|
|
TResPtr<CCollisionMeshGroup> mpCollision;
|
|
|
|
public:
|
|
CCollisionNode(CScene *pScene, CSceneNode *pParent = 0, CCollisionMeshGroup *pCollision = 0);
|
|
ENodeType NodeType();
|
|
void AddToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo);
|
|
void Draw(FRenderOptions Options, int ComponentIndex, const SViewInfo& ViewInfo);
|
|
SRayIntersection RayNodeIntersectTest(const CRay &Ray, u32 AssetID, const SViewInfo& ViewInfo);
|
|
void SetCollision(CCollisionMeshGroup *pCollision);
|
|
};
|
|
|
|
#endif // CCOLLISIONNODE_H
|