Files
ph/include/Physics/Cylinder.hpp
T
2024-05-25 23:15:25 +02:00

22 lines
336 B
C++

#pragma once
#include "global.h"
#include "types.h"
#include "lib/math.h"
struct Cylinder {
Vec3p pos;
q20 size; // height and radius
inline Cylinder() {}
inline Cylinder(q20 size) {
pos.x = 0;
pos.y = size;
pos.z = 0;
this->size = size;
}
bool Overlaps(Cylinder *other);
};