SimpleEngine/include/simpleengine/ecs/component/cone_collider_component.h

23 lines
523 B
C
Raw Normal View History

2022-11-11 04:53:03 +00:00
#pragma once
#include "../../physics/collision/cone_shape.h"
#include "../../vector.h"
namespace simpleengine::ecs {
/**
* @brief A component that contains a cone collision shape.
*
*/
class ConeColliderComponent {
public:
physics::collision::ConeShape cone_shape;
ConeColliderComponent(physics::collision::ConeShape cone) : cone_shape(cone) {
}
ConeColliderComponent(float radius, float height) : cone_shape(radius, height) {
}
};
}