RoboidControl-cpp/Placement.cpp
Pascal Serrarens 189ea6c689 Initial commit
2023-11-06 14:24:18 +01:00

39 lines
934 B
C++

#include <Placement.h>
Placement::Placement() {
this->position = Vector3::zero;
this->thing = nullptr;
}
// Placement::Placement(Vector3 position, Thing* thing) {
// this->position = position;
// this->thing = thing;
// }
Placement::Placement(Vector2 direction, Sensor* thing) {
this->position = Vector3::zero;
this->direction = direction;
this->thing = thing;
}
Placement::Placement(Vector3 position, Sensor* thing) {
this->position = position;
this->direction = Vector2::zero;
this->thing = thing;
}
Placement::Placement(Vector3 position, Motor* thing) {
this->position = position;
this->direction = Vector2::zero;
this->thing = thing;
}
Placement::Placement(Vector3 position, ControlledMotor* thing) {
this->position = position;
this->direction = Vector2::zero;
this->thing = thing;
}
Placement::Placement(Thing* thing, Vector3 position) {
this->thing = thing;
this->position = position;
}