Update to Ultraleap Unity Plugin 6.12.0

This commit is contained in:
SDraw 2023-09-13 19:03:49 +03:00
parent 3713253375
commit 0fccd9e892
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
2 changed files with 64 additions and 23 deletions

View file

@ -41,6 +41,17 @@ namespace Leap
return new Frame().CopyFrom(frame).Transform(transform);
}
/**
* Returns a new frame that is a copy of a frame, with an additional rigid
* transformation applied to it.
*
* @param transform The transformation to be applied to the copied frame.
*/
public static Frame TransformedCopy(this Frame frame, Vector3 position, Quaternion rotation)
{
return new Frame().CopyFrom(frame).Transform(new LeapTransform(position, rotation));
}
/**
* Does an in-place rigid transformation of a Hand.
*
@ -79,6 +90,17 @@ namespace Leap
return new Hand().CopyFrom(hand).Transform(transform);
}
/**
* Returns a new hand that is a copy of a hand, with an additional rigid
* transformation applied to it.
*
* @param transform The transformation to be applied to the copied hand.
*/
public static Hand TransformedCopy(this Hand hand, Vector3 position, Quaternion rotation)
{
return new Hand().CopyFrom(hand).Transform(new LeapTransform(position, rotation));
}
/**
* Does an in-place rigid transformation of a Finger.
*