History

near-trigger works?

Seth Alves committed 9 years ago

Commit 4bfbab21 parent 03977331 file · +9 −9Browse files

Showing the changes to scripts/system/controllers/controllerModules (1 of 1 file). Show all

Unified · Split

scripts/system/controllers/controllerModules/nearTrigger.js+9−9
@@ -1,6 +1,6 @@
1"use strict";1"use strict";
2 2
3// nearParentGrabEntity.js3// nearTrigger.js
4//4//
5// Distributed under the Apache License, Version 2.0.5// Distributed under the Apache License, Version 2.0.
6// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html6// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
@@ -100,17 +100,17 @@ Script.include("/~/system/controllers/controllerDispatcherUtils.js"); · 93 unmodified lines
100 };100 };
101 }101 }
102 102
103 var leftNearParentingGrabEntity = new NearTriggerEntity(LEFT_HAND);103 var leftNearTriggerEntity = new NearTriggerEntity(LEFT_HAND);
104 var rightNearParentingGrabEntity = new NearTriggerEntity(RIGHT_HAND);104 var rightNearTriggerEntity = new NearTriggerEntity(RIGHT_HAND);
105 105
106 enableDispatcherModule("LeftNearParentingGrabEntity", leftNearParentingGrabEntity);106 enableDispatcherModule("LeftNearTriggerEntity", leftNearTriggerEntity);
107 enableDispatcherModule("RightNearParentingGrabEntity", rightNearParentingGrabEntity);107 enableDispatcherModule("RightNearTriggerEntity", rightNearTriggerEntity);
108 108
109 this.cleanup = function () {109 this.cleanup = function () {
110 leftNearParentingGrabEntity.cleanup();110 leftNearTriggerEntity.cleanup();
111 rightNearParentingGrabEntity.cleanup();111 rightNearTriggerEntity.cleanup();
112 disableDispatcherModule("LeftNearParentingGrabEntity");112 disableDispatcherModule("LeftNearTriggerEntity");
113 disableDispatcherModule("RightNearParentingGrabEntity");113 disableDispatcherModule("RightNearTriggerEntity");
114 };114 };
115 Script.scriptEnding.connect(this.cleanup);115 Script.scriptEnding.connect(this.cleanup);
116}());116}());

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t