Files
st/include/Physics/Cylinder.hpp
T
Yanis 66ad81ba15 Port sbc.c progress from PH (#53)
* move nitro headers to libs/nitro/include and setup sbc.c

Co-authored-by: enzofc708 <47937189+enzofc708@users.noreply.github.com>

* sbc.c 95%

* move sbc in the right folder (and fix a warning)

* revert formating changes

---------

Co-authored-by: enzofc708 <47937189+enzofc708@users.noreply.github.com>
2026-04-17 00:56:47 +02:00

29 lines
404 B
C++

#pragma once
#include "types.h"
#include <nitro/math.h>
struct Cylinder {
Vec3p pos;
q20 size; // height and radius
Cylinder() {}
Cylinder(q20 size) {
this->Init(size);
}
void Init(q20 size) {
pos.x = 0;
pos.y = size;
pos.z = 0;
this->size = size;
}
void MakeEmpty() {
pos = gVec3p_ZERO;
size = -1;
}
};