Skip to content

Commit c80e195

Browse files
committed
Removed some leftovers
1 parent a3b6524 commit c80e195

File tree

6 files changed

+0
-125
lines changed

6 files changed

+0
-125
lines changed

Runtime/Scripts/Interactivity/Playback/Data/Helpers/Interpolation.cs

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,8 @@
77

88
namespace UnityGLTF.Interactivity.Playback
99
{
10-
public struct BezierInterpolateData
11-
{
12-
public IPointer pointer;
13-
public float duration;
14-
public float2 cp0;
15-
public float2 cp1;
16-
public NodeEngineCancelToken cancellationToken;
17-
}
18-
1910
public static partial class Helpers
2011
{
21-
public static async Task<bool> InterpolateAsync<T,V>(T from, T to, Action<T> setter, Func<T, T, float, T> evaluator, float duration, V cancellationToken) where V : struct, ICancelToken
22-
{
23-
for (float t = 0f; t < 1f; t += Time.deltaTime / duration)
24-
{
25-
if (cancellationToken.isCancelled)
26-
return false;
27-
28-
setter(evaluator(from, to, t));
29-
await Task.Yield();
30-
}
31-
32-
return true;
33-
}
34-
35-
public static async Task<bool> LinearInterpolateAsync<T,V>(T to, Pointer<T> pointer, float duration, V cancellationToken) where V : struct, ICancelToken
36-
{
37-
return await InterpolateAsync(pointer.getter(), to, pointer.setter, pointer.evaluator, duration, cancellationToken);
38-
}
39-
40-
public static async Task<bool> InterpolateBezierAsync<T>(Property<T> to, BezierInterpolateData d)
41-
{
42-
var v = to.value;
43-
return await InterpolateBezierAsync(v, d);
44-
}
45-
46-
public static async Task<bool> InterpolateBezierAsync<T>(T to, BezierInterpolateData d)
47-
{
48-
var p = (Pointer<T>)d.pointer;
49-
50-
var evaluator = new Func<T, T, float, T>((a, b, t) => p.evaluator(a, b, CubicBezier(t, d.cp0, d.cp1).y));
51-
52-
return await InterpolateAsync(p.getter(), to, p.setter, evaluator, d.duration, d.cancellationToken);
53-
}
54-
5512
[MethodImpl(MethodImplOptions.AggressiveInlining)]
5613
public static float2 CubicBezier(float t, float2 cp0, float2 cp1)
5714
{

Runtime/Scripts/Interactivity/Playback/ICancelToken.cs

Lines changed: 0 additions & 38 deletions
This file was deleted.

Runtime/Scripts/Interactivity/Playback/ICancelToken.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

Runtime/Scripts/Interactivity/Playback/NodeRegistry.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public static BehaviourEngineNode CreateBehaviourEngineNode(BehaviourEngine engi
2424
["animation/start"] = (engine, node) => new AnimationStart(engine, node),
2525
["animation/stop"] = (engine, node) => new AnimationStop(engine, node),
2626
["animation/stopAt"] = (engine, node) => new AnimationStopAt(engine, node),
27-
["ADBE/output_console_node"] = (engine, node) => new DebugLog(engine, node),
2827
["debug/log"] = (engine, node) => new DebugLog(engine, node),
2928
["event/onHoverIn"] = (engine, node) => new EventOnHoverIn(engine, node),
3029
["event/onHoverOut"] = (engine, node) => new EventOnHoverOut(engine, node),
@@ -154,7 +153,6 @@ public static BehaviourEngineNode CreateBehaviourEngineNode(BehaviourEngine engi
154153
["animation/stop"] = new AnimationStopSpec(),
155154
["animation/stopAt"] = new AnimationStopAtSpec(),
156155
["debug/log"] = new DebugLogSpec(),
157-
["debug/assert"] = new DebugAssertSpec(),
158156
// ["event/onHoverIn"] = new EventOnHoverInSpec(),
159157
// ["event/onHoverOut"] = new EventOnHoverOutSpec(),
160158
["event/onStart"] = new EventOnStartSpec(),

Runtime/Scripts/Interactivity/Playback/NodeSpecs/Debugging/DebugAssert.cs

Lines changed: 0 additions & 20 deletions
This file was deleted.

Runtime/Scripts/Interactivity/Playback/NodeSpecs/Debugging/DebugAssert.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)