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

23 lines
561 B
C
Raw Permalink Normal View History

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