Add being able to set origin of mesh to the local mesh origin. fix centering several meshes.

This commit is contained in:
Chandler Cox
2023-10-25 09:57:51 -05:00
parent 806590d1c3
commit 73694cba6c
5 changed files with 101 additions and 2 deletions

View File

@@ -90,6 +90,21 @@ public:
/// </summary>
Array<BlendShape> BlendShapes;
/// <summary>
/// Global translation for this mesh to be at it's local origin.
/// </summary>
Vector3 OriginTranslation = Vector3::Zero;
/// <summary>
/// Orientation for this mesh at it's local origin.
/// </summary>
Quaternion OriginOrientation = Quaternion::Identity;
/// <summary>
/// Meshes scaling.
/// </summary>
Vector3 Scaling = Vector3(1);
public:
/// <summary>
/// Determines whether this instance has any mesh data.