Appendage rotation is now absolute

This commit is contained in:
AbstractConcept 2022-10-18 22:18:46 -05:00
parent 2989d9a72c
commit 04f8c6a2e4
111 changed files with 95 additions and 81 deletions

View file

@ -207,7 +207,7 @@ namespace RimWorldAnimationStudio
actorBody.headRenderer.transform.eulerAngles = new Vector3(0, 0, -headAngle);
actorBody.appendageRenderer.transform.localPosition = new Vector3(appendagePos.x, appendagePos.z, 0f);
actorBody.appendageRenderer.transform.localEulerAngles = new Vector3(0, 0, -appendageRotation);
actorBody.appendageRenderer.transform.eulerAngles = new Vector3(0, 0, -appendageRotation);
actorBody.bodyRenderer.sprite = alienRaceDef.GetBodyTypeGraphic((CardinalDirection)bodyFacing, bodyType);
actorBody.headRenderer.sprite = alienRaceDef.isHumanoid ? alienRaceDef.GetHeadGraphic((CardinalDirection)headFacing) : null;

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -115,7 +115,7 @@ MonoBehaviour:
m_MinSize: {x: 677, y: 342}
m_MaxSize: {x: 12002, y: 8042}
vertical: 0
controlID: 18462
controlID: 271
--- !u!114 &6
MonoBehaviour:
m_ObjectHideFlags: 52
@ -140,7 +140,7 @@ MonoBehaviour:
m_MinSize: {x: 402, y: 342}
m_MaxSize: {x: 8002, y: 8042}
vertical: 1
controlID: 18463
controlID: 272
--- !u!114 &7
MonoBehaviour:
m_ObjectHideFlags: 52
@ -165,7 +165,7 @@ MonoBehaviour:
m_MinSize: {x: 402, y: 221}
m_MaxSize: {x: 8002, y: 4021}
vertical: 0
controlID: 18464
controlID: 273
--- !u!114 &8
MonoBehaviour:
m_ObjectHideFlags: 52
@ -398,7 +398,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: fadcfcff0eddfcffaeddfcffbee7fcffd2e7fcff72e8fcff187fffff2c7fffffcc7fffff56fbffff623e00003c420000ee5d0100f260010008620100266501002e66010038670100566c0100ac6c0100184003001243030062490300804d0300
m_ExpandedIDs: d2efffffe6efffff86f0ffff62fbffff
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@ -458,9 +458,9 @@ MonoBehaviour:
m_PlayAudio: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: 222.32251, y: 535.4549, z: 52.272427}
m_Target: {x: 655.9438, y: 467.4639, z: 12.5}
speed: 2
m_Value: {x: 230.78027, y: 531.8572, z: 52.9063}
m_Value: {x: 655.9438, y: 467.4639, z: 12.5}
m_RenderMode: 0
m_CameraMode:
drawMode: 0
@ -510,9 +510,9 @@ MonoBehaviour:
speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 167.97263
m_Target: 550.26544
speed: 2
m_Value: 175.88757
m_Value: 550.26544
m_Ortho:
m_Target: 1
speed: 2
@ -1117,7 +1117,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 41}
m_SelectedIDs: 4c4c0000
m_LastClickedID: 19532
m_ExpandedIDs: 00000000404c0000424c0000444c0000464c0000484c00004a4c00004c4c000000ca9a3b
m_ExpandedIDs: 00000000144c0000164c0000184c00001a4c00001c4c00001e4c0000204c0000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@ -1145,7 +1145,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 00000000404c0000424c0000444c0000464c0000484c00004a4c00004c4c000000ca9a3b
m_ExpandedIDs: 00000000144c0000164c0000184c00001a4c00001c4c00001e4c0000204c0000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:

View file

@ -24,7 +24,7 @@ MonoBehaviour:
m_MinSize: {x: 677, y: 342}
m_MaxSize: {x: 12002, y: 8042}
vertical: 0
controlID: 17531
controlID: 125
--- !u!114 &2
MonoBehaviour:
m_ObjectHideFlags: 52
@ -141,7 +141,7 @@ MonoBehaviour:
m_MinSize: {x: 402, y: 342}
m_MaxSize: {x: 8002, y: 8042}
vertical: 1
controlID: 17532
controlID: 88
--- !u!114 &4
MonoBehaviour:
m_ObjectHideFlags: 52
@ -166,7 +166,7 @@ MonoBehaviour:
m_MinSize: {x: 402, y: 221}
m_MaxSize: {x: 8002, y: 4021}
vertical: 0
controlID: 17533
controlID: 64
--- !u!114 &5
MonoBehaviour:
m_ObjectHideFlags: 52
@ -186,8 +186,8 @@ MonoBehaviour:
y: 0
width: 337
height: 671
m_MinSize: {x: 201, y: 221}
m_MaxSize: {x: 4001, y: 4021}
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 6}
m_Panes:
- {fileID: 6}
@ -224,7 +224,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: bee7fcffd2e7fcff72e8fcff187fffff2c7fffffcc7fffff56fbffff623e00003c420000ee5d0100f260010008620100266501002e66010038670100566c0100ac6c01001243030062490300
m_ExpandedIDs: 62fbffff
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@ -313,9 +313,9 @@ MonoBehaviour:
m_PlayAudio: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: 537.5618, y: 264.1134, z: 81.3081}
m_Target: {x: 655.9438, y: 467.4639, z: 12.5}
speed: 2
m_Value: {x: 537.5618, y: 264.1134, z: 81.3081}
m_Value: {x: 655.9438, y: 467.4639, z: 12.5}
m_RenderMode: 0
m_CameraMode:
drawMode: 0
@ -365,9 +365,9 @@ MonoBehaviour:
speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 531.07306
m_Target: 550.26544
speed: 2
m_Value: 531.07306
m_Value: 550.26544
m_Ortho:
m_Target: 1
speed: 2
@ -939,8 +939,8 @@ MonoBehaviour:
y: 671
width: 1414
height: 276
m_MinSize: {x: 100, y: 100}
m_MaxSize: {x: 4000, y: 4000}
m_MinSize: {x: 101, y: 121}
m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 13}
m_Panes:
- {fileID: 12}
@ -1000,7 +1000,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 41}
m_SelectedIDs: 4c4c0000
m_LastClickedID: 19532
m_ExpandedIDs: 00000000404c0000424c0000444c0000464c0000484c00004a4c00004c4c000000ca9a3b
m_ExpandedIDs: 00000000144c0000164c0000184c00001a4c00001c4c00001e4c0000204c0000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@ -1028,7 +1028,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 00000000404c0000424c0000444c0000464c0000484c00004a4c00004c4c000000ca9a3b
m_ExpandedIDs: 00000000144c0000164c0000184c00001a4c00001c4c00001e4c0000204c0000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@ -1160,8 +1160,8 @@ MonoBehaviour:
y: 0
width: 506
height: 947
m_MinSize: {x: 275, y: 50}
m_MaxSize: {x: 4000, y: 4000}
m_MinSize: {x: 276, y: 71}
m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 16}
m_Panes:
- {fileID: 16}
@ -1203,5 +1203,5 @@ MonoBehaviour:
m_ControlHash: -371814159
m_PrefName: Preview_InspectorPreview
m_PreviewWindow: {fileID: 0}
m_LastInspectedObjectInstanceID: 214864
m_LastInspectedObjectInstanceID: -1
m_LastVerticalScrollValue: 0

Binary file not shown.

View file

@ -116,111 +116,111 @@ ScriptsOnlyBuild:
- Class: 114
Script: {instanceID: 11262}
- Class: 114
Script: {instanceID: 11290}
Script: {instanceID: 11288}
- Class: 114
Script: {instanceID: 11450}
Script: {instanceID: 11448}
- Class: 114
Script: {instanceID: 11502}
Script: {instanceID: 11500}
- Class: 114
Script: {instanceID: 11598}
Script: {instanceID: 11596}
- Class: 114
Script: {instanceID: 11654}
Script: {instanceID: 11652}
- Class: 114
Script: {instanceID: 11730}
Script: {instanceID: 11728}
- Class: 114
Script: {instanceID: 11754}
Script: {instanceID: 11752}
- Class: 114
Script: {instanceID: 11766}
Script: {instanceID: 11764}
- Class: 114
Script: {instanceID: 11776}
Script: {instanceID: 11774}
- Class: 114
Script: {instanceID: 11798}
Script: {instanceID: 11796}
- Class: 114
Script: {instanceID: 11860}
Script: {instanceID: 11858}
- Class: 114
Script: {instanceID: 11866}
Script: {instanceID: 11864}
- Class: 114
Script: {instanceID: 12132}
Script: {instanceID: 12130}
- Class: 114
Script: {instanceID: 12168}
Script: {instanceID: 12166}
- Class: 114
Script: {instanceID: 12334}
Script: {instanceID: 12332}
- Class: 114
Script: {instanceID: 12350}
Script: {instanceID: 12348}
- Class: 114
Script: {instanceID: 12598}
Script: {instanceID: 12596}
- Class: 114
Script: {instanceID: 12712}
Script: {instanceID: 12710}
- Class: 114
Script: {instanceID: 12736}
Script: {instanceID: 12734}
- Class: 114
Script: {instanceID: 12860}
Script: {instanceID: 12858}
- Class: 114
Script: {instanceID: 12902}
Script: {instanceID: 12900}
- Class: 114
Script: {instanceID: 13152}
Script: {instanceID: 13150}
- Class: 114
Script: {instanceID: 13176}
Script: {instanceID: 13174}
- Class: 114
Script: {instanceID: 13216}
Script: {instanceID: 13214}
- Class: 114
Script: {instanceID: 13234}
Script: {instanceID: 13232}
- Class: 114
Script: {instanceID: 13242}
Script: {instanceID: 13240}
- Class: 114
Script: {instanceID: 13246}
Script: {instanceID: 13244}
- Class: 114
Script: {instanceID: 13364}
Script: {instanceID: 13362}
- Class: 114
Script: {instanceID: 13396}
Script: {instanceID: 13394}
- Class: 114
Script: {instanceID: 13434}
Script: {instanceID: 13432}
- Class: 114
Script: {instanceID: 13452}
Script: {instanceID: 13450}
- Class: 114
Script: {instanceID: 13468}
Script: {instanceID: 13466}
- Class: 114
Script: {instanceID: 13480}
Script: {instanceID: 13478}
- Class: 114
Script: {instanceID: 13484}
Script: {instanceID: 13482}
- Class: 114
Script: {instanceID: 13518}
Script: {instanceID: 13516}
- Class: 114
Script: {instanceID: 13636}
Script: {instanceID: 13634}
- Class: 114
Script: {instanceID: 13650}
Script: {instanceID: 13648}
- Class: 114
Script: {instanceID: 13676}
Script: {instanceID: 13674}
- Class: 114
Script: {instanceID: 13804}
Script: {instanceID: 13802}
- Class: 114
Script: {instanceID: 13880}
Script: {instanceID: 13878}
- Class: 114
Script: {instanceID: 14074}
Script: {instanceID: 14072}
- Class: 114
Script: {instanceID: 14156}
Script: {instanceID: 14154}
- Class: 114
Script: {instanceID: 14172}
Script: {instanceID: 14170}
- Class: 114
Script: {instanceID: 14320}
Script: {instanceID: 14318}
- Class: 114
Script: {instanceID: 14466}
Script: {instanceID: 14464}
- Class: 114
Script: {instanceID: 14492}
- Class: 114
Script: {instanceID: 14494}
- Class: 114
Script: {instanceID: 14496}
Script: {instanceID: 14526}
- Class: 114
Script: {instanceID: 14528}
Script: {instanceID: 14548}
- Class: 114
Script: {instanceID: 14550}
- Class: 114
Script: {instanceID: 14552}
Script: {instanceID: 14590}
- Class: 114
Script: {instanceID: 14592}
Script: {instanceID: 14596}
- Class: 114
Script: {instanceID: 14598}
- Class: 114
Script: {instanceID: 14640}
Script: {instanceID: 14638}
- Class: 115
Script: {instanceID: 0}
- Class: 128

Some files were not shown because too many files have changed in this diff Show more