【发布时间】:2015-05-03 08:13:12
【问题描述】:
如何在 Unity3D 中将可配置关节锁定在新位置?
当我使用 Target Rotation 设置新位置,然后将 Angular YMotion 设置为 Locked 时,它会返回到原始(未旋转)状态并锁定在那里。如何避免?
【问题讨论】:
标签: unity3d
如何在 Unity3D 中将可配置关节锁定在新位置?
当我使用 Target Rotation 设置新位置,然后将 Angular YMotion 设置为 Locked 时,它会返回到原始(未旋转)状态并锁定在那里。如何避免?
【问题讨论】:
标签: unity3d
如果“锁定”状态对您不起作用。我的猜测是你可以尝试使用 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
}
【讨论】: