Skip to content

Commit ff7eeff

Browse files
author
lawwong
committed
Fix Grabbable with PoseFreezer calculate wrong pose when the object root is not at (0,0,0)
1 parent 70fe1f2 commit ff7eeff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Misc/GrabbableBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,15 +383,15 @@ protected override void OnGrabTransform()
383383

384384
protected void GrabRigidbodyToPose(RigidPose targetPose)
385385
{
386-
ModifyPose(ref targetPose, true);
386+
ModifyPose(ref targetPose, false);
387387

388388
RigidPose.SetRigidbodyVelocity(grabRigidbody, grabRigidbody.position, targetPose.pos, followingDuration);
389389
RigidPose.SetRigidbodyAngularVelocity(grabRigidbody, grabRigidbody.rotation, targetPose.rot, followingDuration, overrideMaxAngularVelocity);
390390
}
391391

392392
protected void GrabTransformToPose(RigidPose targetPose)
393393
{
394-
ModifyPose(ref targetPose, true);
394+
ModifyPose(ref targetPose, false);
395395

396396
if (grabRigidbody != null)
397397
{

0 commit comments

Comments
 (0)