mirror of
https://github.com/SDraw/ml_mods_cvr.git
synced 2026-05-06 09:27:00 +00:00
Instance set changes
Additional animator parameters Reworked rigidbodies Update to latest LeapC and LeapCSharp
This commit is contained in:
parent
1f0b518761
commit
075ff67304
38 changed files with 8310 additions and 8646 deletions
|
|
@ -14,9 +14,6 @@ namespace LeapInternal
|
|||
{
|
||||
public static readonly float MM_TO_M = 1e-3f;
|
||||
|
||||
public static bool leapToUnityTransformSet = false;
|
||||
private static LeapTransform leapToUnityTransform;
|
||||
|
||||
/**
|
||||
* Provides a static LeapTransform that converts from Leap units and coordinates to Unity
|
||||
*/
|
||||
|
|
@ -24,12 +21,8 @@ namespace LeapInternal
|
|||
{
|
||||
get
|
||||
{
|
||||
if (!leapToUnityTransformSet)
|
||||
{
|
||||
leapToUnityTransform = new LeapTransform(Vector3.zero, Quaternion.identity, new Vector3(MM_TO_M, MM_TO_M, MM_TO_M));
|
||||
leapToUnityTransform.MirrorZ();
|
||||
leapToUnityTransformSet = true;
|
||||
}
|
||||
LeapTransform leapToUnityTransform = new LeapTransform(Vector3.zero, Quaternion.identity, new Vector3(MM_TO_M, MM_TO_M, MM_TO_M));
|
||||
leapToUnityTransform.MirrorZ();
|
||||
|
||||
return leapToUnityTransform;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue