mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 04:57:25 +02:00
minimize git diff
This commit is contained in:
parent
8879727d88
commit
57a9d34cda
2 changed files with 4 additions and 0 deletions
|
@ -1510,6 +1510,7 @@ function MyController(hand) {
|
|||
};
|
||||
|
||||
this.entityIsNearGrabbable = function(entityID, handPosition, maxDistance) {
|
||||
|
||||
if (!this.entityIsGrabbable(entityID)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -2263,6 +2264,7 @@ function MyController(hand) {
|
|||
this.clearEquipHaptics();
|
||||
|
||||
this.shouldScale = false;
|
||||
|
||||
Controller.triggerHapticPulse(HAPTIC_PULSE_STRENGTH, HAPTIC_PULSE_DURATION, this.hand);
|
||||
|
||||
if (this.entityActivated) {
|
||||
|
@ -2392,6 +2394,7 @@ function MyController(hand) {
|
|||
|
||||
this.nearGrabbing = function(deltaTime, timestamp) {
|
||||
this.grabPointSphereOff();
|
||||
|
||||
if (this.state == STATE_NEAR_GRABBING && (!this.triggerClicked && this.secondaryReleased())) {
|
||||
this.callEntityMethodOnGrabbed("releaseGrab");
|
||||
this.setState(STATE_OFF, "trigger released");
|
||||
|
|
|
@ -191,6 +191,7 @@ var toolBar = (function () {
|
|||
selectionManager.clearSelections();
|
||||
entityListTool.sendUpdate();
|
||||
selectionManager.setSelections([entityID]);
|
||||
|
||||
return entityID;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue