mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
AvatarList not AvatarManager
This commit is contained in:
parent
a0a6dee764
commit
79604d3529
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
/* global getEntityCustomData, flatten, Xform, Script, Quat, Vec3, MyAvatar, Entities, Overlays, Settings,
|
/* global getEntityCustomData, flatten, Xform, Script, Quat, Vec3, MyAvatar, Entities, Overlays, Settings,
|
||||||
Reticle, Controller, Camera, Messages, Mat4, getControllerWorldLocation, getGrabPointSphereOffset,
|
Reticle, Controller, Camera, Messages, Mat4, getControllerWorldLocation, getGrabPointSphereOffset,
|
||||||
setGrabCommunications, Menu, HMD, isInEditMode, AvatarManager */
|
setGrabCommunications, Menu, HMD, isInEditMode, AvatarList */
|
||||||
/* eslint indent: ["error", 4, { "outerIIFEBody": 0 }] */
|
/* eslint indent: ["error", 4, { "outerIIFEBody": 0 }] */
|
||||||
|
|
||||||
(function() { // BEGIN LOCAL_SCOPE
|
(function() { // BEGIN LOCAL_SCOPE
|
||||||
|
@ -2339,7 +2339,7 @@ function MyController(hand) {
|
||||||
this.otherGrabbingLineOff();
|
this.otherGrabbingLineOff();
|
||||||
} else if (this.otherGrabbingUUID !== null) {
|
} else if (this.otherGrabbingUUID !== null) {
|
||||||
if (this.triggerSmoothedGrab() && !isEditing() && farGrabEnabled && farSearching) {
|
if (this.triggerSmoothedGrab() && !isEditing() && farGrabEnabled && farSearching) {
|
||||||
var avatar = AvatarManager.getAvatar(this.otherGrabbingUUID);
|
var avatar = AvatarList.getAvatar(this.otherGrabbingUUID);
|
||||||
var IN_FRONT_OF_AVATAR = { x: 0, y: 0.2, z: 0.4 }; // Up from hips and in front of avatar.
|
var IN_FRONT_OF_AVATAR = { x: 0, y: 0.2, z: 0.4 }; // Up from hips and in front of avatar.
|
||||||
var startPosition = Vec3.sum(avatar.position, Vec3.multiplyQbyV(avatar.rotation, IN_FRONT_OF_AVATAR));
|
var startPosition = Vec3.sum(avatar.position, Vec3.multiplyQbyV(avatar.rotation, IN_FRONT_OF_AVATAR));
|
||||||
var finishPisition = Vec3.sum(rayPickInfo.properties.position, // Entity's centroid.
|
var finishPisition = Vec3.sum(rayPickInfo.properties.position, // Entity's centroid.
|
||||||
|
|
Loading…
Reference in a new issue