1#include "ObjectCollisionCylinder.hh"
6ObjectCollisionCylinder::ObjectCollisionCylinder(f32 radius, f32 height,
8 : m_radius(radius), m_height(height), m_pos(center) {
9 m_worldRadius = radius;
10 m_worldHeight = height;
14 m_top = center + EGG::Vector3f::ey * height;
15 m_bottom = center - EGG::Vector3f::ey * height;
19ObjectCollisionCylinder::~ObjectCollisionCylinder() =
default;
24 m_translation = speed;
25 m_worldPos = m_pos * scale.x;
26 m_worldHeight = m_height * scale.y;
27 m_worldRadius = m_radius * scale.x;
30 m_top = mat.
ps_multVector(m_worldPos + EGG::Vector3f::ey * m_worldHeight);
31 m_bottom = mat.
ps_multVector(m_worldPos - EGG::Vector3f::ey * m_worldHeight);
Vector3f ps_multVector(const Vector3f &vec) const
Paired-singles impl. of multVector.