Made replay smooth

This commit is contained in:
2026-01-15 23:02:24 +00:00
parent 1a75fdd1d4
commit 6ecb6540a5
3 changed files with 190 additions and 26 deletions

View File

@@ -2,15 +2,55 @@
"FrameInfo": [
{
"Position": {
"x": -6.0,
"y": 0.8299999237060547,
"z": -20.0
"x": -6.21684610843658448,
"y": 0.8300000429153442,
"z": -20.08922302722930908
},
"Rotation": {
"x": -2.7017710208892824,
"y": 89.94727325439453
"x": -3.7189955711364748,
"y": 87.40065002441406
}
},
{
"Position": { "x": -6.193745157935583, "y": 0.8300000320781362, "z": -20.08110872182011 },
"Rotation": { "x": -3.626520612023, "y": 87.632161228049 }
},
{
"Position": { "x": -6.170644207434582, "y": 0.8300000212409281, "z": -20.0729944164109 },
"Rotation": { "x": -3.534045652909, "y": 87.8636724316836 }
},
{
"Position": { "x": -6.147543256933581, "y": 0.83000001040372, "z": -20.06488011100169 },
"Rotation": { "x": -3.441570693796, "y": 88.0951836353182 }
},
{
"Position": { "x": -6.12444230643258, "y": 0.829999999566512, "z": -20.05676580559248 },
"Rotation": { "x": -3.349095734682, "y": 88.3266948389528 }
},
{
"Position": { "x": -6.101341355931579, "y": 0.8299999887293039, "z": -20.04865150018327 },
"Rotation": { "x": -3.256620775569, "y": 88.5582060425874 }
},
{
"Position": { "x": -6.078240405430578, "y": 0.8299999778920958, "z": -20.04053719477406 },
"Rotation": { "x": -3.164145816455, "y": 88.789717246222 }
},
{
"Position": { "x": -6.055139454929577, "y": 0.8299999670548877, "z": -20.03242288936485 },
"Rotation": { "x": -3.071670857342, "y": 89.0212284498566 }
},
{
"Position": { "x": -6.032038504428576, "y": 0.8299999562176797, "z": -20.02430858395564 },
"Rotation": { "x": -2.979195898228, "y": 89.2527396534912 }
},
{
"Position": { "x": -6.008937553927575, "y": 0.8299999453804716, "z": -20.01619427854643 },
"Rotation": { "x": -2.886720939115, "y": 89.4842508571258 }
},
{
"Position": { "x": -5.985836603426574, "y": 0.8299999345432635, "z": -20.00807997313722 },
"Rotation": { "x": -2.794245980001, "y": 89.7157620607604 }
},
{
"Position": {
"x": -5.962735652923584,
@@ -6599,17 +6639,6 @@
"x": -3.7189955711364748,
"y": 87.40065002441406
}
},
{
"Position": {
"x": 0,
"y": 0.8300000429153442,
"z": 0
},
"Rotation": {
"x": -3.7649030685424806,
"y": 87.40065002441406
}
}
]
}

View File

@@ -288,7 +288,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!143 &933837796
CharacterController:
m_ObjectHideFlags: 0
@@ -657,12 +657,147 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 42603e4f95b24efa85355a04450c20e2, type: 3}
m_Name:
m_EditorClassIdentifier:
<PlayerSpeed>k__BackingField: 5
LerpPositions:
- {fileID: 1120251456}
- {fileID: 832169854}
- {fileID: 988211806}
- {fileID: 1176743697}
--- !u!1 &1376841702
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1376841705}
- component: {fileID: 1376841704}
- component: {fileID: 1376841703}
- component: {fileID: 1376841706}
m_Layer: 0
m_Name: PlayerReplayer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1376841703
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1376841702}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_RenderShadows: 1
m_RequiresDepthTextureOption: 2
m_RequiresOpaqueTextureOption: 2
m_CameraType: 0
m_Cameras: []
m_RendererIndex: -1
m_VolumeLayerMask:
serializedVersion: 2
m_Bits: 1
m_VolumeTrigger: {fileID: 0}
m_VolumeFrameworkUpdateModeOption: 2
m_RenderPostProcessing: 0
m_Antialiasing: 0
m_AntialiasingQuality: 2
m_StopNaN: 0
m_Dithering: 0
m_ClearDepth: 1
m_AllowXRRendering: 1
m_AllowHDROutput: 1
m_UseScreenCoordOverride: 0
m_ScreenSizeOverride: {x: 0, y: 0, z: 0, w: 0}
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2
m_TaaSettings:
m_Quality: 3
m_FrameInfluence: 0.1
m_JitterScale: 1
m_MipBias: 0
m_VarianceClampScale: 0.9
m_ContrastAdaptiveSharpening: 0
--- !u!20 &1376841704
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1376841702}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_Iso: 200
m_ShutterSpeed: 0.005
m_Aperture: 16
m_FocusDistance: 10
m_FocalLength: 50
m_BladeCount: 5
m_Curvature: {x: 2, y: 11}
m_BarrelClipping: 0.25
m_Anamorphism: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1376841705
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1376841702}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1376841706
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1376841702}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 42603e4f95b24efa85355a04450c20e2, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &2041731858
PrefabInstance:
m_ObjectHideFlags: 0
@@ -812,3 +947,4 @@ SceneRoots:
- {fileID: 988211806}
- {fileID: 1176743697}
- {fileID: 933837798}
- {fileID: 1376841705}

View File

@@ -1,5 +1,4 @@
using System;
using System.IO;
using System.IO;
using UnityEngine;
namespace InterfaceOff.WorldScene
@@ -20,7 +19,7 @@ namespace InterfaceOff.WorldScene
private void FixedUpdate()
{
FrameIndex = (FrameIndex + 1) % (Frames.Length - 1);
FrameIndex = (FrameIndex + 1) % (Frames.Length - 2);
}
private void Update()