grab and handControllerGrab use new far-grab action

This commit is contained in:
Seth Alves 2017-04-14 11:52:07 -07:00
parent b1dc5be316
commit 1009182c06
2 changed files with 2 additions and 2 deletions

View file

@ -529,7 +529,7 @@ Grabber.prototype.moveEvent = function(event) {
if (!this.actionID) {
if (!entityIsGrabbedByOther(this.entityID)) {
this.actionID = Entities.addAction("spring", this.entityID, actionArgs);
this.actionID = Entities.addAction("far-grab", this.entityID, actionArgs);
}
} else {
Entities.updateAction(this.entityID, this.actionID, actionArgs);

View file

@ -2527,7 +2527,7 @@ function MyController(hand) {
var timeScale = this.distanceGrabTimescale(this.mass, distanceToObject);
this.actionID = NULL_UUID;
this.actionID = Entities.addAction("spring", this.grabbedThingID, {
this.actionID = Entities.addAction("far-grab", this.grabbedThingID, {
targetPosition: this.currentObjectPosition,
linearTimeScale: timeScale,
targetRotation: this.currentObjectRotation,