mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
finish purge of RayPick from grab.js
This commit is contained in:
parent
181944d5db
commit
b4f941af03
1 changed files with 5 additions and 5 deletions
|
@ -15,7 +15,7 @@
|
|||
//
|
||||
|
||||
/* global MyAvatar, Entities, Script, Camera, Vec3, Reticle, Overlays, getEntityCustomData, Messages, Quat, Controller,
|
||||
isInEditMode, HMD entityIsGrabbable, Pointers, PickType RayPick*/
|
||||
isInEditMode, HMD entityIsGrabbable, Picks, PickType, Pointers*/
|
||||
|
||||
|
||||
(function() { // BEGIN LOCAL_SCOPE
|
||||
|
@ -258,14 +258,14 @@ function Grabber() {
|
|||
this.liftKey = false; // SHIFT
|
||||
this.rotateKey = false; // CONTROL
|
||||
|
||||
this.mouseRayOverlays = RayPick.createRayPick({
|
||||
this.mouseRayOverlays = Picks.createPick(PickType.Ray, {
|
||||
joint: "Mouse",
|
||||
filter: Picks.PICK_OVERLAYS,
|
||||
enabled: true
|
||||
});
|
||||
var tabletItems = getMainTabletIDs();
|
||||
if (tabletItems.length > 0) {
|
||||
RayPick.setIncludeItems(this.mouseRayOverlays, tabletItems);
|
||||
Picks.setIncludeItems(this.mouseRayOverlays, tabletItems);
|
||||
}
|
||||
var renderStates = [{name: "grabbed", end: beacon}];
|
||||
this.mouseRayEntities = Pointers.createPointer(PickType.Ray, {
|
||||
|
@ -328,7 +328,7 @@ Grabber.prototype.pressEvent = function(event) {
|
|||
return;
|
||||
}
|
||||
|
||||
var overlayResult = RayPick.getPrevRayPickResult(this.mouseRayOverlays);
|
||||
var overlayResult = Picks.getPrevPickResult(this.mouseRayOverlays);
|
||||
if (overlayResult.type != Picks.INTERSECTED_NONE) {
|
||||
return;
|
||||
}
|
||||
|
@ -599,7 +599,7 @@ Grabber.prototype.keyPressEvent = function(event) {
|
|||
|
||||
Grabber.prototype.cleanup = function() {
|
||||
Pointers.removePointer(this.mouseRayEntities);
|
||||
RayPick.removeRayPick(this.mouseRayOverlays);
|
||||
Picks.removePick(this.mouseRayOverlays);
|
||||
};
|
||||
|
||||
var grabber = new Grabber();
|
||||
|
|
Loading…
Reference in a new issue