CinemachineFreelook相机鬼畜抖动的解决方法

又是培训机构的出品。。。。。。

2020.3.27

发现跟随时抖动的原因了,其实应该按照传统相机的跟随逻辑放在late update里执行,但是由于开发cinemachine的开发组很坑地把cinemachine freelook里的三个轨道Damping值默认给了3,于是相机会以每0.75秒的延时重定位到轨道上,造成跟随时相机的疯狂抖动。

现在最新版本Cinemachine 的Damping是1,不敢想象,之前的3,是有多抖

(解决)

账号过期了,也无法看到,底层的逻辑是否真的在 Update()里面一直执行,导致疯狂抖动,也无法控制渲染,这个的cinemachine 你们是不是真的敢用在游戏 Runtime??

namespace Cinemachine
{
    /// <summary>
    /// A Cinemachine Camera geared towards a 3rd person camera experience.
    /// The camera orbits around its subject with three separate camera rigs defining
    /// rings around the target. Each rig has its own radius, height offset, composer,
    /// and lens settings.
    /// Depending on the camera's position along the spline connecting these three rigs,
    /// these settings are interpolated to give the final camera position and state.
    /// </summary>
    [DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
    [DisallowMultipleComponent]
    [ExecuteAlways]
    [ExcludeFromPreset]
    [AddComponentMenu("Cinemachine/CinemachineFreeLook")]
    [HelpURL(Documentation.BaseURL + "manual/CinemachineFreeLook.html")]
    public class CinemachineFreeLook : CinemachineVirtualCameraBase
    {

相关推荐

  1. 解决GB28181网络抖动问题

    2024-06-18 18:50:03       12 阅读
  2. 去除upload抖动效果

    2024-06-18 18:50:03       7 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-06-18 18:50:03       19 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-18 18:50:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-18 18:50:03       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-18 18:50:03       20 阅读

热门阅读

  1. android 常用工具

    2024-06-18 18:50:03       5 阅读
  2. mysql 存储过程 - 创建使用示例

    2024-06-18 18:50:03       9 阅读
  3. 微信小程序地图功能详解

    2024-06-18 18:50:03       7 阅读
  4. 决策树算法介绍:原理与案例实现

    2024-06-18 18:50:03       6 阅读
  5. C++中的::运算符

    2024-06-18 18:50:03       5 阅读
  6. 合并两个可能为空的List 的方法记录

    2024-06-18 18:50:03       5 阅读
  7. 从入门到精通:Linux多线程

    2024-06-18 18:50:03       6 阅读