mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 11:29:23 +00:00
Logic rewrite
Update to LeapCSharp 5.13.1 Not tested in VR
This commit is contained in:
parent
a41f17af82
commit
3609500959
21 changed files with 566 additions and 103 deletions
23
ml_lme/vendor/LeapCSharp/Arm.cs
vendored
23
ml_lme/vendor/LeapCSharp/Arm.cs
vendored
|
@ -5,6 +5,7 @@
|
|||
* http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
|
||||
* between Ultraleap and you, your company or other organization. *
|
||||
******************************************************************************/
|
||||
using UnityEngine;
|
||||
|
||||
namespace Leap
|
||||
{
|
||||
|
@ -29,6 +30,7 @@ namespace Leap
|
|||
/// Constructs a new Arm object.
|
||||
/// @since 3.0
|
||||
/// </summary>
|
||||
[System.Obsolete("This signature will be removed in the next major version of the plugin. Use the one with Vector3 and Quaternion instead.")]
|
||||
public Arm(Vector elbow,
|
||||
Vector wrist,
|
||||
Vector center,
|
||||
|
@ -45,6 +47,25 @@ namespace Leap
|
|||
BoneType.TYPE_METACARPAL, //ignored for arms
|
||||
rotation)
|
||||
{ }
|
||||
/// <summary>
|
||||
/// Constructs a new Arm object.
|
||||
/// </summary>
|
||||
public Arm(Vector3 elbow,
|
||||
Vector3 wrist,
|
||||
Vector3 center,
|
||||
Vector3 direction,
|
||||
float length,
|
||||
float width,
|
||||
Quaternion rotation)
|
||||
: base(elbow,
|
||||
wrist,
|
||||
center,
|
||||
direction,
|
||||
length,
|
||||
width,
|
||||
BoneType.TYPE_METACARPAL, //ignored for arms
|
||||
rotation)
|
||||
{ }
|
||||
|
||||
/// <summary>
|
||||
/// Compare Arm object equality.
|
||||
|
@ -73,6 +94,7 @@ namespace Leap
|
|||
///
|
||||
/// @since 2.0.3
|
||||
/// </summary>
|
||||
[System.Obsolete("Its type will be changed from Vector to Vector3")]
|
||||
public Vector ElbowPosition
|
||||
{
|
||||
get
|
||||
|
@ -90,6 +112,7 @@ namespace Leap
|
|||
///
|
||||
/// @since 2.0.3
|
||||
/// </summary>
|
||||
[System.Obsolete("Its type will be changed from Vector to Vector3")]
|
||||
public Vector WristPosition
|
||||
{
|
||||
get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue