浏览代码

Updated TwistChain step0 and scene.

Disabled LightBaking in TwistChain scenes.
/main
Simon Bouvier-Zappa 6 年前
当前提交
d6414e49
共有 7 个文件被更改,包括 43 次插入22 次删除
  1. 8
      Assets/Constraints/TwistChain.cs
  2. 13
      Assets/Constraints/TwistChainStep0.cs
  3. 7
      Assets/Constraints/TwistChainStep1.cs
  4. 31
      Assets/Scenes/TwistChainStep0.unity
  5. 2
      Assets/Scenes/TwistChainStep1.unity
  6. 2
      Assets/Scenes/TwistChainStep2.unity
  7. 2
      Assets/Scenes/TwistChainStep3.unity

8
Assets/Constraints/TwistChain.cs


void IAnimationJobData.SetDefaultValues()
{
// Default values.
root = null;
tip = null;
rootTarget = null;
tipTarget = null;
root = tip = rootTarget = tipTarget = null;
curve = AnimationCurve.Linear(0f, 0f, 1f, 1f);
}
}

13
Assets/Constraints/TwistChainStep0.cs


[Unity.Burst.BurstCompile]
public struct TwistChainStep0Job : IWeightedAnimationJob
{
public NativeArray<ReadWriteTransformHandle> chain;
public ReadWriteTransformHandle rootTarget;
public ReadWriteTransformHandle tipTarget;
public FloatProperty jobWeight { get; set; }
public void ProcessRootMotion(AnimationStream stream) {}

[System.Serializable]
public struct TwistChainStep0Data : IAnimationJobData
{
bool IAnimationJobData.IsValid() => true;
public Transform root;
public Transform tip;
[SyncSceneToStream] public Transform rootTarget;
[SyncSceneToStream] public Transform tipTarget;
bool IAnimationJobData.IsValid() => !(root == null || tip == null || !tip.IsChildOf(root) || rootTarget == null || tipTarget == null);
root = tip = rootTarget = tipTarget = null;
}
}

7
Assets/Constraints/TwistChainStep1.cs


void IAnimationJobData.SetDefaultValues()
{
// Default values.
root = null;
tip = null;
rootTarget = null;
tipTarget = null;
root = tip = rootTarget = tipTarget = null;
}
}

31
Assets/Scenes/TwistChainStep0.unity


m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 2138677392}
m_IndirectSpecularColor: {r: 0.28502664, g: 0.37139288, b: 0.4960104, a: 1}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_GIWorkflowMode: 0
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 212552605}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 7.484589, y: -0.20891471, z: -0.3319864}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 7.500002, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1799980151}

m_Name:
m_EditorClassIdentifier:
m_Weight: 1
m_Effectors: []
m_Effectors:
- m_Transform: {fileID: 854090494}
m_Style:
shape: {fileID: 4300000, guid: 687b70eb9c49243639f9379f6965034f, type: 2}
color: {r: 1, g: 0, b: 0, a: 0.5}
size: 1.13
position: {x: 0, y: 0, z: 0}
rotation: {x: 0, y: 0, z: 0}
m_Visible: 1
- m_Transform: {fileID: 212552606}
m_Style:
shape: {fileID: 4300000, guid: 687b70eb9c49243639f9379f6965034f, type: 2}
color: {r: 1, g: 0, b: 0, a: 0.5}
size: 1.13
position: {x: 0, y: 0, z: 0}
rotation: {x: 0, y: 0, z: 0}
m_Visible: 1
--- !u!4 &404418314
Transform:
m_ObjectHideFlags: 0

m_Name:
m_EditorClassIdentifier:
m_Weight: 1
m_Data:
root: {fileID: 376328609}
tip: {fileID: 184886312}
rootTarget: {fileID: 854090494}
tipTarget: {fileID: 212552606}
--- !u!1 &1849984684
GameObject:
m_ObjectHideFlags: 0

2
Assets/Scenes/TwistChainStep1.unity


LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 0
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1

2
Assets/Scenes/TwistChainStep2.unity


LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 0
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1

2
Assets/Scenes/TwistChainStep3.unity


LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 0
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1

正在加载...
取消
保存