Placeblock / BuildIT

A simple, powerful and FAST application for simulating logic gates written from scratch in pure C++ using OpenGL
0 stars 0 forks source link

Better collision detection for components #23

Open Placeblock opened 1 month ago

Placeblock commented 1 month ago

Wires are currently checked for collision by brute forcing all wires (not ideal)

Instead we could construct some sort of tree using the bounding boxes of the wires and check for them before checking the wires more exact

Placeblock commented 1 month ago

This applies for all components (wires are now components too)