mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
highlight the grabbed hotspot when the drop gesture is detected
This commit is contained in:
parent
e62d34136d
commit
eb5107d9a5
1 changed files with 8 additions and 0 deletions
|
@ -1882,6 +1882,14 @@ function MyController(hand) {
|
|||
}
|
||||
|
||||
if (this.state == STATE_HOLD) {
|
||||
|
||||
// highlight the grabbed hotspot when the dropGesture is detected.
|
||||
if (dropDetected) {
|
||||
entityPropertiesCache.addEntity(this.grabbedHotspot.entityID);
|
||||
equipHotspotBuddy.updateHotspot(this.grabbedHotspot, timestamp);
|
||||
equipHotspotBuddy.highlightHotspot(this.grabbedHotspot);
|
||||
}
|
||||
|
||||
if (dropDetected && this.triggerSmoothedGrab()) {
|
||||
this.callEntityMethodOnGrabbed("releaseEquip");
|
||||
this.setState(STATE_OFF, "drop gesture detected");
|
||||
|
|
Loading…
Reference in a new issue