mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-22 05:34:46 +00:00
28 lines
787 B
C++
28 lines
787 B
C++
#pragma once
|
|
|
|
#include "T3D/entity.h"
|
|
#include "T3D/components/render/meshComponent.h"
|
|
#include "T3D/components/collision/shapeCollisionComponent.h"
|
|
#include "T3D/components/animation/animationComponent.h"
|
|
|
|
class StaticShapeObject : public Entity
|
|
{
|
|
typedef Entity Parent;
|
|
|
|
MeshComponent* mMeshComponent;
|
|
ShapeCollisionComponent* mCollisionComponent;
|
|
AnimationComponent* mAnimationComponent;
|
|
|
|
public:
|
|
StaticShapeObject();
|
|
~StaticShapeObject();
|
|
|
|
virtual bool onAdd();
|
|
virtual void onRemove();
|
|
|
|
MeshComponent* getMeshComponent() { return mMeshComponent; }
|
|
ShapeCollisionComponent* getCollisionComponent() { return mCollisionComponent; }
|
|
AnimationComponent* getAnimationComponent() { return mAnimationComponent; }
|
|
|
|
DECLARE_CONOBJECT(StaticShapeObject);
|
|
}; |