mirror of
https://git.chinosk6.cn/chinosk/gkms-local.git
synced 2026-02-04 09:04:52 +00:00
增加第一人称相机平滑 Y 轴模式
This commit is contained in:
@@ -164,7 +164,10 @@ namespace GakumasLocal::HookMain {
|
||||
*value = cacheRotation;
|
||||
}
|
||||
else {
|
||||
lookat_injected(_this, &cacheLookAt, &worldUp);
|
||||
static GakumasLocal::Misc::FixedSizeQueue<float> recordsY(60);
|
||||
const auto newY = GKCamera::CheckNewY(cacheLookAt, true, recordsY);
|
||||
UnityResolve::UnityType::Vector3 newCacheLookAt{cacheLookAt.x, newY, cacheLookAt.z};
|
||||
lookat_injected(_this, &newCacheLookAt, &worldUp);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user