rename Trigger to Sensor

This commit is contained in:
MihailRis
2024-07-09 07:37:20 +03:00
parent 0a14d6220a
commit c94c2697e7
11 changed files with 93 additions and 93 deletions
+4 -4
View File
@@ -11,11 +11,11 @@
class Block;
class Chunks;
struct Trigger;
struct Sensor;
class PhysicsSolver {
glm::vec3 gravity;
std::vector<Trigger*> triggers;
std::vector<Sensor*> sensors;
public:
PhysicsSolver(glm::vec3 gravity);
void step(
@@ -36,8 +36,8 @@ public:
bool isBlockInside(int x, int y, int z, Hitbox* hitbox);
bool isBlockInside(int x, int y, int z, Block* def, blockstate state, Hitbox* hitbox);
void setTriggers(std::vector<Trigger*> triggers) {
this->triggers = std::move(triggers);
void setSensors(std::vector<Sensor*> sensors) {
this->sensors = std::move(sensors);
}
};