Sbox-Cinema / sbox-cinema

8 stars 2 forks source link

Add interact border #84

Closed chrisspieler closed 1 year ago

chrisspieler commented 1 year ago

This PR adds a white border that appears around any entity that the player may interact with. This serves the purpose of making it easier for the player to understand which object is being hovered over in cases where many small objects (e.g. garbage, food) are close together. I've also added a ScreenHelper utility class since projecting a worldspace bounding box to screenspace might be useful for a lot of different things.