mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 06:17:38 +02:00
Fix laser beam jumping upon grabbing entity
This commit is contained in:
parent
5bef6ea029
commit
2c5782e4bb
1 changed files with 1 additions and 1 deletions
|
@ -2160,7 +2160,7 @@ function MyController(hand) {
|
|||
|
||||
var rayPickInfo = this.calcRayPickInfo(this.hand);
|
||||
|
||||
this.overlayLineOn(rayPickInfo.searchRay.origin, grabbedProperties.position, COLORS_GRAB_DISTANCE_HOLD);
|
||||
this.overlayLineOn(rayPickInfo.searchRay.origin, Vec3.subtract(grabbedProperties.position, this.offsetPosition), COLORS_GRAB_DISTANCE_HOLD);
|
||||
|
||||
var distanceToObject = Vec3.length(Vec3.subtract(MyAvatar.position, this.currentObjectPosition));
|
||||
var success = Entities.updateAction(this.grabbedEntity, this.actionID, {
|
||||
|
|
Loading…
Reference in a new issue