Skip to content

Commit adedde9

Browse files
committed
changed over bone control
1 parent 634ce26 commit adedde9

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Basis/Packages/com.basis.framework/Avatar/TransformBinders/BoneControl/BasisLocalBoneControl.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ namespace Basis.Scripts.TransformBinders.BoneControl
1818
public class BasisLocalBoneControl
1919
{
2020
/// <summary>Angle (degrees) after which rotation interpolation speeds up.</summary>
21-
public static readonly float AngleBeforeSpeedup = 25f;
21+
public const float AngleBeforeSpeedup = 25f;
2222

2323
/// <summary>Smoothing factor for tracker-driven motion (position/rotation).</summary>
24-
public static readonly float trackersmooth = 25;
24+
public const float trackersmooth = 25;
2525

2626
/// <summary>Base interpolation rate for quaternions (per second).</summary>
27-
public static readonly float QuaternionLerp = 14;
27+
public const float QuaternionLerp = 14;
2828

2929
/// <summary>Fast interpolation rate used when angular delta exceeds threshold.</summary>
30-
public static readonly float QuaternionLerpFastMovement = 56;
30+
public const float QuaternionLerpFastMovement = 56;
3131

3232
/// <summary>Base interpolation rate for positions (per second).</summary>
33-
public static float PositionLerpAmount = 40;
33+
public const float PositionLerpAmount = 40;
3434

3535
/// <summary>Indicates whether any global events have been wired (if applicable).</summary>
3636
public static bool HasEvents { get; internal set; }
@@ -44,11 +44,11 @@ public class BasisLocalBoneControl
4444
/// <summary>Debug/display name for this bone control.</summary>
4545
[SerializeField] public string name;
4646

47-
/// <summary>Optional target bone used when tracking is absent.</summary>
48-
[NonSerialized] public BasisLocalBoneControl Target;
47+
/// <summary>Index (in the owner's Controls/store) of the optional target bone used when tracking is absent; -1 if none.</summary>
48+
[NonSerialized] public int TargetIndex = -1;
4949

50-
/// <summary>True if a valid <see cref="Target"/> has been assigned.</summary>
51-
public bool HasTarget { get { return Target != null; } }
50+
/// <summary>True if a valid <see cref="TargetIndex"/> has been assigned.</summary>
51+
public bool HasTarget { get { return TargetIndex >= 0; } }
5252

5353
/// <summary>Local-space offset applied relative to the target bone.</summary>
5454
public float3 Offset;

0 commit comments

Comments
 (0)