RoboidControl-cpp/Placement.cpp
2023-11-07 15:11:33 +01:00

39 lines
964 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;
//}