From 5473a5fc10f7a1cf63a971b4d96b0e4c35bb858e Mon Sep 17 00:00:00 2001 From: Programmer-DField Date: Mon, 15 Mar 2021 10:03:20 +0000 Subject: [PATCH] Added look ahead to each rig. Top, middle and bottom. The camera now pans towards direction of travel without having any input in the look direction. --- game/Assets/Scenes/Main.unity | 74 ++++++++++++++++++++++++----------- 1 file changed, 51 insertions(+), 23 deletions(-) diff --git a/game/Assets/Scenes/Main.unity b/game/Assets/Scenes/Main.unity index 37182db..f50592c 100644 --- a/game/Assets/Scenes/Main.unity +++ b/game/Assets/Scenes/Main.unity @@ -2330,19 +2330,19 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4676633831318799747, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.w - value: 0.96508753 + value: 0.96430516 objectReference: {fileID: 0} - target: {fileID: 4676633831318799747, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.x - value: -0.25685617 + value: -0.25951084 objectReference: {fileID: 0} - target: {fileID: 4676633831318799747, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.y - value: -0.049839307 + value: -0.051170956 objectReference: {fileID: 0} - target: {fileID: 4676633831318799747, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.z - value: 0.012125949 + value: 0.012299885 objectReference: {fileID: 0} - target: {fileID: 4676633831388223340, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: field of view @@ -2358,23 +2358,23 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalPosition.z - value: -3.220001 + value: -2.720001 objectReference: {fileID: 0} - target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.w - value: 0.9986828 + value: 0.9987155 objectReference: {fileID: 0} - target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.x - value: -0.010713463 + value: -0.013481097 objectReference: {fileID: 0} - target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.y - value: 0.05017548 + value: 0.048838526 objectReference: {fileID: 0} - target: {fileID: 4676633831388223341, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.z - value: 0.00053826213 + value: 0.0006592437 objectReference: {fileID: 0} - target: {fileID: 4676633831414007564, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_Name @@ -2444,33 +2444,57 @@ PrefabInstance: propertyPath: m_Center.y value: 0.75 objectReference: {fileID: 0} + - target: {fileID: 4676633832548214812, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} + propertyPath: m_LookaheadTime + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 4676633832548214812, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} + propertyPath: m_LookaheadIgnoreY + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4676633832548214812, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} + propertyPath: m_LookaheadSmoothing + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4676633832617577688, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} + propertyPath: m_LookaheadTime + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 4676633832617577688, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} + propertyPath: m_LookaheadIgnoreY + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4676633832617577688, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} + propertyPath: m_LookaheadSmoothing + value: 1 + objectReference: {fileID: 0} - target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalPosition.x - value: -0.00045909826 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalPosition.y - value: -0.03446183 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalPosition.z - value: 0.02442116 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.w - value: 0.9628306 + value: 0.96430516 objectReference: {fileID: 0} - target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.x - value: -0.26518905 + value: -0.2595108 objectReference: {fileID: 0} - target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.y - value: -0.04995259 + value: -0.051170956 objectReference: {fileID: 0} - target: {fileID: 4676633832789495666, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.z - value: 0.011697084 + value: 0.012299888 objectReference: {fileID: 0} - target: {fileID: 4676633832858914730, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_XAxis.Value @@ -2478,7 +2502,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4676633832858914730, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_YAxis.Value - value: 0.5 + value: 0.35 objectReference: {fileID: 0} - target: {fileID: 4676633832858914730, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_Heading.m_Bias @@ -2498,7 +2522,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4676633832858914730, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_Orbits.Array.data[1].m_Radius - value: 2.5 + value: 2 objectReference: {fileID: 0} - target: {fileID: 4676633832858914730, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_RecenterToTargetHeading.m_enabled @@ -2522,7 +2546,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4676633832858914731, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalPosition.z - value: -3.220001 + value: -2.720001 objectReference: {fileID: 0} - target: {fileID: 4676633832858914731, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.w @@ -2554,24 +2578,28 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.w - value: 0.9663517 + value: 0.96563977 objectReference: {fileID: 0} - target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.x - value: -0.25719267 + value: -0.25987002 objectReference: {fileID: 0} - target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.y - value: 0.003943198 + value: 0.002645854 objectReference: {fileID: 0} - target: {fileID: 4676633832928372887, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LocalRotation.z - value: -0.0009593834 + value: -0.0006359806 objectReference: {fileID: 0} - target: {fileID: 4676633833077728949, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LookaheadTime value: 0.5 objectReference: {fileID: 0} + - target: {fileID: 4676633833077728949, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} + propertyPath: m_LookaheadIgnoreY + value: 1 + objectReference: {fileID: 0} - target: {fileID: 4676633833077728949, guid: 8a918f60d084fbe468bf3b2c0a14fb52, type: 3} propertyPath: m_LookaheadSmoothing value: 1