init
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Animations.Rigging;
|
||||
|
||||
namespace VOID.Generic.Objects.Unit.Animations.Helpers
|
||||
{
|
||||
[Serializable]
|
||||
public struct ExtractTransformConstraintData : IAnimationJobData
|
||||
{
|
||||
[SyncSceneToStream] public Transform bone;
|
||||
|
||||
public Vector3 position;
|
||||
public Quaternion rotation;
|
||||
|
||||
public bool IsValid()
|
||||
{
|
||||
return bone != null;
|
||||
}
|
||||
|
||||
public void SetDefaultValues()
|
||||
{
|
||||
this.bone = null;
|
||||
|
||||
this.position = Vector3.zero;
|
||||
this.rotation = Quaternion.identity;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user