35 lines
875 B
C++
35 lines
875 B
C++
#ifndef HYDRAPLANETACTOR
|
|
#define HYDRAPLANETACTOR
|
|
|
|
#include "../HydraActor.h"
|
|
|
|
class CLASS_DEFINE HydraPlanetActor : public HydraActor
|
|
{
|
|
private:
|
|
double m_scale = 1.0;
|
|
double m_widthscale = 1000.0f;
|
|
HydraID m_material_component = INVALID_HYDRA_ID;
|
|
HydraID m_position_component = INVALID_HYDRA_ID;
|
|
HydraID m_mesh_component = INVALID_HYDRA_ID;
|
|
HydraID m_quads[6];
|
|
protected:
|
|
void _CreatePosition();
|
|
void _CreateMesh();
|
|
void _CreateMaterial();
|
|
void _CreatePhysics();
|
|
void _CreateRenderableComponent();
|
|
void _CreateQuads();
|
|
void _CreateTick();
|
|
public:
|
|
void FixedTick(float delta_t) override;
|
|
void InitialiseComponents() override;
|
|
void DeferredInitialiseComponents()override;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* HYDRAPLANETACTOR */
|