mirror of
https://github.com/SDraw/ml_mods_cvr.git
synced 2026-05-06 09:27:00 +00:00
Update to Ultraleap Unity Plugin 6.12.0
This commit is contained in:
parent
3713253375
commit
0fccd9e892
2 changed files with 64 additions and 23 deletions
22
ml_lme/vendor/LeapCSharp/TransformExtensions.cs
vendored
22
ml_lme/vendor/LeapCSharp/TransformExtensions.cs
vendored
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue