【问题标题】:Unity3D locking configurable jointUnity3D 锁定可配置关节
【发布时间】:2015-05-03 08:13:12
【问题描述】:

如何在 Unity3D 中将可配置关节锁定在新位置?

当我使用 Target Rotation 设置新位置,然后将 Angular YMotion 设置为 Locked 时,它会返回到原始(未旋转)状态并锁定在那里。如何避免?

【问题讨论】:

    标签: unity3d


    【解决方案1】:

    如果“锁定”状态对您不起作用。我的猜测是你可以尝试使用 LateUpdate 函数来实现你想要的。

    // LateUpdate is called after all Update functions have been called.
    // This will ensure that your joint will always have the same rotation, even after the physics have been into play.
    void LateUpdate() {
        // Set the target Rotation
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-23
      • 1970-01-01
      • 2018-09-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多