Transitioned from VectorX to floatX

And some trying to update Rigidbody when transform changes
This commit is contained in:
Simon Lübeß
2023-06-25 02:47:33 +02:00
parent 5f5da2ed35
commit 9e1f648aa0
49 changed files with 1281 additions and 871 deletions
@@ -188,9 +188,9 @@ namespace GlitchyEngine.Renderer.Animation
class JointAnimation// : IDisposable
{
public JointAnimationChannel<Vector3> TranslationChannel ~ delete _;
public JointAnimationChannel<float3> TranslationChannel ~ delete _;
public JointAnimationChannel<Quaternion> RotationChannel ~ delete _;
public JointAnimationChannel<Vector3> ScaleChannel ~ delete _;
public JointAnimationChannel<float3> ScaleChannel ~ delete _;
public float Duration
{
@@ -221,7 +221,7 @@ namespace GlitchyEngine.Renderer.Animation
case .Step:
result.Translation = previous;
case .Linear:
result.Translation = Vector3.Lerp(previous, next, interpolationValue);
result.Translation = lerp(previous, next, interpolationValue);
default:
result.Rotation = ?;
Runtime.NotImplemented();
@@ -262,7 +262,7 @@ namespace GlitchyEngine.Renderer.Animation
case .Step:
result.Scale = previous;
case .Linear:
result.Scale = Vector3.Lerp(previous, next, interpolationValue);
result.Scale = lerp(previous, next, interpolationValue);
default:
result.Rotation = ?;
Runtime.NotImplemented();
@@ -14,7 +14,7 @@ namespace GlitchyEngine.Renderer.Animation
public struct JointPose
{
public Quaternion Rotation;
public Vector3 Translation;
public Vector3 Scale;
public float3 Translation;
public float3 Scale;
}
}