stride3d/stride

[Animation] Messy curve/animation/evaluator API

开放

#449 创建于 2019年5月18日

 (0 条评论) (0 个反应) (0 位负责人)C# (886 个派生)batch import
area-Graphicsenhancementgood first issue

仓库指标

星标
 (6,001 个星标)
PR 合并指标
 (平均合并 10天 11小时) (30 天内合并 22 个 PR)

描述

Release Type: Github

Version: Latest

Platform(s): Any

Describe the bug The animation/curve API as it is is not very maintainable and quite restrictive, there's no reason now that generics supports unmanaged and interface type constraints to have two implementation of a class differing in only the generic type they chose, ex : AnimationCurveEvaluatorOptimizedVector3Group / AnimationCurveEvaluatorOptimizedVector4Group. We can replace 2/3 of the files within /Animations by implementing and adding an IInterpolation interface on our math types and including it as a constraint on our generics requiring that kind of features.

贡献者指南