2015-05-03 30 views
2

如何將Unity3D中的可配置關節鎖定在新位置?Unity3D鎖定可配置關節

當我使用Target Rotation設置新位置,然後將Angular YMotion設置爲Locked時,它將返回到原始狀態(未旋轉),並在那裏鎖定。我如何避免它?

回答

0

如果「鎖定」狀態不適用於您。我的猜測是,你可以嘗試使用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 
}