Files
st/include/Physics/Cylinder.hpp
T
Alessevan ce24ddfc4e Improvements in SWBM (#133)
* feat: improvements in SWBM

* feat: improvements

* feat: increase matching for jp version

* feat: add vfuncs from fields' classes

* feat: improve matching

* feat: rename parameters to reflect staticness of the function

* refactor: change mangled name

* feat: remove unused variable from bss

* style: explicite parenthesis

* feat: better matching

* feat: replace if/else by a switch statement
2026-08-14 16:37:50 +02:00

41 lines
690 B
C++

#pragma once
#include "types.h"
#include "math.hpp"
struct Cylinder {
/* 00 */ VecFx32 pos;
/* 0C */ fx32 size; // height and radius
/* 10 */
Cylinder() {}
Cylinder(fx32 size) {
this->Init(size);
}
Cylinder(fx32 x, fx32 y, fx32 z, fx32 size) {
this->Init(x, y, z, size);
}
void Init(fx32 size) {
pos.x = 0;
pos.y = size;
pos.z = 0;
this->size = size;
}
void Init(fx32 x, fx32 y, fx32 z, fx32 size) {
this->pos.x = x;
this->pos.y = y;
this->pos.z = z;
this->size = size;
}
void MakeEmpty() {
pos = gVecFx32_ZERO;
size = -1;
}
};