polar snapping now very goood!

This commit is contained in:
Sebastian
2024-11-01 14:08:27 +01:00
parent 19b2c9549f
commit a10335ed47
8 changed files with 171 additions and 116 deletions
+4 -6
View File
@@ -1,11 +1,9 @@
#pragma once
#include <memory>
#include <raylib.h>
#include "datatypes.h"
#include "moveable.h"
#include "node.h"
class Signal : public Movable{
public:
@@ -13,11 +11,11 @@ class Signal : public Movable{
Signal();
Signal(Vec2D<float> position, float r, float _speed, Color color) : Movable(position, Vec2D<float>(0,0), _speed), radius(r), color(color) {}
std::shared_ptr<Node> next;
std::shared_ptr<Node> last;
std::shared_ptr<Edge> edge;
SPTR_Node next;
SPTR_Node last;
SPTR_Edge edge;
std::shared_ptr<Node> start;
SPTR_Node start;
bool at_target = false;