forked from Unity-Technologies/EntityComponentSystemSamples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimpleAnimationComponents.cs
More file actions
53 lines (44 loc) · 1002 Bytes
/
Copy pathSimpleAnimationComponents.cs
File metadata and controls
53 lines (44 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using Unity.Entities;
using Unity.Mathematics;
internal struct BoneTag : IComponentData { }
internal struct RootTag : IComponentData { }
internal struct BoneEntity : IBufferElementData
{
public Entity Value;
}
internal struct RootEntity : IComponentData
{
public Entity Value;
}
internal struct BindPose : IBufferElementData
{
public float4x4 Value;
}
internal struct AnimateBlendShape : IComponentData
{
public float From;
public float To;
public float Frequency;
public float PhaseShift;
}
internal struct AnimateRotation : IComponentData
{
public quaternion From;
public quaternion To;
public float Frequency;
public float PhaseShift;
}
internal struct AnimateScale : IComponentData
{
public float3 From;
public float3 To;
public float Frequency;
public float PhaseShift;
}
internal struct AnimatePosition : IComponentData
{
public float3 From;
public float3 To;
public float Frequency;
public float PhaseShift;
}