Unity3D锁定可配置接头

Unity3D锁定可配置接头,unity3d,Unity3d,如何将Unity3D中的可配置关节锁定在新位置 当我使用目标旋转设置新位置,然后将Angular YMotion设置为Locked时,它将返回到原始(未旋转)状态并在那里锁定。如果“锁定”状态对您不起作用,如何避免。我的猜测是,您可以尝试使用LateUpdate函数来实现您想要的功能 // LateUpdate is called after all Update functions have been called. // This will ensure that your joint wi

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

当我使用目标旋转设置新位置,然后将Angular YMotion设置为Locked时,它将返回到原始(未旋转)状态并在那里锁定。如果“锁定”状态对您不起作用,如何避免。我的猜测是,您可以尝试使用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
}