mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 10:08:46 +02:00
grab and handControllerGrab use new far-grab action
This commit is contained in:
parent
b1dc5be316
commit
1009182c06
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue