implement graph node mouse collisions (unoptimized iterating over all masses for now)

This commit is contained in:
2026-03-06 13:25:35 +01:00
parent 6bfe217fee
commit fe9a54a8da
5 changed files with 965 additions and 19 deletions

View File

@ -87,6 +87,9 @@ public:
Vector2 mouse = Vector2Zero();
Vector2 last_mouse = Vector2Zero();
// State selection from graph
size_t collision_mass = -1;
public:
input_handler(state_manager& _state, orbit_camera& _camera) : state(_state), camera(_camera)
{
@ -123,6 +126,7 @@ public:
auto add_block() -> void;
auto remove_block() -> void;
auto place_goal() const -> void;
auto select_state() const -> void;
// Key actions
auto toggle_camera_lock() -> void;