fix: 自由路径移动到起点时排除平面旋转分支,保持原始姿态
根因:MoveObjectToPathStart 中 'PathType != Rail && TryCreatePlanarPathRotationAtStart' 分支会捕获 Free(Free != Rail),应用基于路径方向(含与地面的夹角)的 平面旋转,导致物体姿态被修改。已将 Free 从该分支排除,使 Free 走 纯平移分支(ApplyTrackedTranslationOnly),保持物体原始姿态。 257 单测全过。
This commit is contained in:
parent
d3535fc5a0
commit
bd7deea0e5
@ -914,7 +914,7 @@ namespace NavisworksTransport.Core.Animation
|
||||
LogManager.Error($"[移动到起点] {_route.PathType.GetDisplayName()} 真实物体纯增量起点失败,已禁止退回旧姿态链。");
|
||||
return false;
|
||||
}
|
||||
else if (_route.PathType != PathType.Rail &&
|
||||
else if (_route.PathType != PathType.Rail && _route.PathType != PathType.Free &&
|
||||
TryCreatePlanarPathRotationAtStart(out var planarRotation))
|
||||
{
|
||||
ApplyFullPoseUpdate(startPosition, planarRotation);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user