Sync daemon authority migration
This commit is contained in:
parent
030b4b5d74
commit
39a0dc8737
295 changed files with 25121 additions and 7360 deletions
|
|
@ -1,7 +1,8 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Unity.Mathematics;
|
||||
using static Unity.Mathematics.math;
|
||||
using CultMath;
|
||||
using static CultMath.math;
|
||||
|
||||
public class BezierCurve
|
||||
{
|
||||
|
|
@ -13,6 +14,16 @@ public class BezierCurve
|
|||
|
||||
private float? _maximum;
|
||||
|
||||
public static BezierCurve FromKeys(IEnumerable<(float time, float value, float inTangent, float outTangent)> keys)
|
||||
{
|
||||
return new BezierCurve
|
||||
{
|
||||
Keys = keys
|
||||
.Select(key => float4(key.time, key.value, key.inTangent, key.outTangent))
|
||||
.ToArray()
|
||||
};
|
||||
}
|
||||
|
||||
public float Maximum
|
||||
{
|
||||
get
|
||||
|
|
|
|||
Loading…
Reference in a new issue