mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 21:33:35 +02:00
fix grab script
This commit is contained in:
parent
93eed1c0da
commit
9346366fc5
1 changed files with 3 additions and 2 deletions
|
@ -437,8 +437,9 @@ function MyController(hand) {
|
|||
var handControllerPosition = (this.hand === RIGHT_HAND) ? MyAvatar.rightHandPosition : MyAvatar.leftHandPosition;
|
||||
var controllerHandInput = (this.hand === RIGHT_HAND) ? Controller.Standard.RightHand : Controller.Standard.LeftHand;
|
||||
var handRotation = Quat.multiply(MyAvatar.orientation, Controller.getPoseValue(controllerHandInput).rotation);
|
||||
var grabbedProperties = Entities.getEntityProperties(this.grabbedEntity, ["position", "rotation"]);
|
||||
|
||||
var grabbedProperties = Entities.getEntityProperties(this.grabbedEntity, ["position", "rotation",
|
||||
"gravity", "ignoreForCollisions",
|
||||
"collisionsWillMove"]);
|
||||
var now = Date.now();
|
||||
|
||||
// add the action and initialize some variables
|
||||
|
|
Loading…
Reference in a new issue