浏览代码

Merge branch 'master' of github.com:Unity-Technologies/animation-rigging-workshop-siggraph2019

/main
Dave Hunt 5 年前
当前提交
146127c8
共有 14 个文件被更改,包括 1156 次插入58 次删除
  1. 14
      Assets/AnimationRiggingWorkshop/Constraints/TwistChain.cs
  2. 2
      Assets/AnimationRiggingWorkshop/Constraints/TwistChainStep0.cs
  3. 31
      Assets/AnimationRiggingWorkshop/Constraints/TwistChainStep1.cs
  4. 2
      Assets/AnimationRiggingWorkshop/Constraints/TwistChainStep1.cs.meta
  5. 8
      Assets/AnimationRiggingWorkshop/Scenes/TwistChainStep1.unity
  6. 2
      Assets/AnimationRiggingWorkshop/Scenes/TwistChainStep1.unity.meta
  7. 30
      Assets/AnimationRiggingWorkshop/Scenes/TwistChainStep2.unity
  8. 2
      Assets/AnimationRiggingWorkshop/Scenes/TwistChainStep2.unity.meta
  9. 104
      Assets/AnimationRiggingWorkshop/Constraints/TwistChainStep2.cs
  10. 11
      Assets/AnimationRiggingWorkshop/Constraints/TwistChainStep2.cs.meta
  11. 1001
      Assets/AnimationRiggingWorkshop/Scenes/TwistChainFinal.unity
  12. 7
      Assets/AnimationRiggingWorkshop/Scenes/TwistChainFinal.unity.meta
  13. 0
      /Assets/AnimationRiggingWorkshop/Scenes/TwistChainExtra.unity.meta
  14. 0
      /Assets/AnimationRiggingWorkshop/Scenes/TwistChainExtra.unity

14
Assets/AnimationRiggingWorkshop/Constraints/TwistChain.cs


// Retrieve chain in-between root and tip transforms.
Transform[] chain = ConstraintsUtils.ExtractChain(data.root, data.tip);
// Extract steps from chain.
float[] steps = ConstraintsUtils.ExtractSteps(chain);
// Build Job.
var job = new TwistChainJob();
job.chain = new NativeArray<ReadWriteTransformHandle>(chain.Length, Allocator.Persistent, NativeArrayOptions.UninitializedMemory);