Gothic-UnZENity-Project / Gothic-UnZENity

Fan project recreating Piranha Bytes' evergreens Gothic I and Gothic II in Unity Engine. Currently focussing on VR.
GNU General Public License v3.0
6 stars 1 forks source link

Highlighting objects shouldn't use HVRGrabbable if they're to push or just to "execute" #67

Open JaXt0r opened 3 days ago

JaXt0r commented 3 days ago

With issue #57, we added capabilities to highlight hand-hovered objects. Easiest way was to add HVRGrabbable to each of these objects and recognize the HoverEnter/HoverExit events. Unfortunately this also adds wrong behaviour:

  1. A "remote grab sound" is played when grabbed
  2. A grab indicator occurs when hovered

It's no blocker, just convenience so far. But let's try to optimize by removing or overwriting HVRGrabbable to ensure same logic for Hover events occurs, but without the actual grab functionality.

Todos: