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