branchrust_reboot/main/hackweek_base_heatingcancel
16 Commits over 0 Days - ∞cph!
Figure out why blocks don't want to connect to their opposite side
Connect together faces when entity links update
Fix debug points for walls
Add debug points to faces so we can ddraw better visualizations for the faces
Fix backface check for 180 degree faces not working due to needing a bigger offset with the normal
Make logging "a little clearer"
Crappy visualization method of connected links so I can make a video of it working
Handle case of one face connecting to two other faces with the same angle by choosing the face that is closer
- bottom face of wall connecting to top + bottom faces of a wall via the side socket
- fixes so bottom <-> bottom and top <-> top since they are closer
Fix dot product of normals missing `Mathf.Abs()` causing it not to catch special case of 180 degrees
Temp fix for TextTable Pooling error NRE so I can use breakpoints
Commit bunch of stuff
- setup faces & edges when setting up entity links (edges are essentially groups of entity links)
- add 'printfaces' command to debug what faces are closest and what edges are considered connected
- after a "bit" of trial and error grab the old "CalculateAngle()" method from previous hackweek and rewrite it
- be greedy and recalculate all closest faces whenever links change (instead of being smart with caching, it's a hackweek)
- all that should be left is debugging why certain faces don't want to consider themselves connection candidates
Rename BlockFace -> BlockFaceDefinition so I can make runtime types with normal names
Define sockets for square floor
Define faces and edges for a normal wall
Proper MVP implementation of "full base heating"
- add ability to define faces & edges of each building block
- draw gizmos to visually confirm what you are defining