5 #include "abstractshape.h"
10 template<
typename T>
class TAABB;
15 Capsule(
const glm::vec3& origin,
const glm::vec3& direction,
const float radius);
17 const glm::vec3& origin()
const;
18 void setOrigin(
const glm::vec3& origin);
20 const glm::vec3& direction()
const;
21 void setDirection(
const glm::vec3& direction);
23 const float radius()
const;
24 void setRadius(
const float radius);
26 virtual bool intersects(
const Sphere& sphere)
const override;
27 virtual bool nearTo(
const TAABB<int>& aabb)
const override;
28 virtual bool containedBy(
const TAABB<int>& aabb)
const override;
33 glm::vec3 m_direction;
Definition: abstractshape.h:7