forked from KhronosGroup/glTF-Asset-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNode.cs
48 lines (40 loc) · 1.23 KB
/
Node.cs
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
using System.Collections.Generic;
using System.Numerics;
namespace AssetGenerator.Runtime
{
/// <summary>
/// A node in a node hierarchy.
/// </summary>
internal class Node
{
/// <summary>
/// A floating-point 4x4 transformation matrix stored in column-major order.
/// </summary>
public Matrix4x4? Matrix { get; set; }
/// <summary>
/// The mesh in this node.
/// </summary>
public Mesh Mesh { get; set; }
/// <summary>
/// The node's unit quaternion rotation in the order (x, y, z, w), where w is the scalar.
/// </summary>
public Quaternion? Rotation { get; set; }
/// <summary>
/// The node's non-uniform scale
/// </summary>
public Vector3? Scale { get; set; }
/// <summary>
/// The node's translation
/// </summary>
public Vector3? Translation { get; set; }
/// <summary>
/// children of this node.
/// </summary>
public IEnumerable<Node> Children { get; set; }
public Skin Skin { get; set; }
/// <summary>
/// Name of the node
/// </summary>
public string Name { get; set; }
}
}