This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-01-31 06:12:18 +08:00
parent 9cae51746d
commit 6a66bc165f
232 changed files with 118535 additions and 10519 deletions

View File

@@ -80,7 +80,7 @@ namespace Plugins.JNGame.Sync.Frame
public override Task OnInit()
{
Physics.autoSimulation = false;
Physics.simulationMode = SimulationMode.Script;
Physics.autoSyncTransforms = false;
this.OnReset();
return Task.CompletedTask;
@@ -108,6 +108,8 @@ namespace Plugins.JNGame.Sync.Frame
this._nLocalFrame = 0;
this._nServerFrame = 0;
this._nLocalRunFrame = 0;
this.dtTotal = 0;
this.dtInputTotal = 0;
Physics.SyncTransforms();
EventDispatcher.Event.Dispatch(JNSyncFrameEvent.CREATE);
@@ -174,9 +176,9 @@ namespace Plugins.JNGame.Sync.Frame
}
});
//执行下一帧物理
Physics.Simulate((float)dt / 1000);
Physics.SyncTransforms();
// //执行下一帧物理
// Physics.Simulate((float)dt / 1000);
// Physics.SyncTransforms();
}