Fix : 옵티 미러 쿼터니언 공식 수정 및 Inspector UI 추가
- MirrorOrientation 공식 (-x,y,-z,w) → (x,-y,-z,w) 로 수정 (YZ 평면 반사: Y,Z 성분 반전이 올바른 공식) - Inspector에 Mirror Mode 섹션 및 AutoReconnect 항목 추가 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8a6af1eae8
commit
1af29e6256
@ -30,6 +30,14 @@
|
||||
<uie:PropertyField binding-path="DrawForcePlates" label="Draw Force Plates"/>
|
||||
<uie:PropertyField binding-path="RecordOnPlay" label="Record On Play"/>
|
||||
<uie:PropertyField binding-path="SkipDataDescriptions" label="Skip Data Descriptions"/>
|
||||
<uie:PropertyField binding-path="AutoReconnect" label="Auto Reconnect"/>
|
||||
</ui:Foldout>
|
||||
</ui:VisualElement>
|
||||
|
||||
<!-- Mirror Mode -->
|
||||
<ui:VisualElement class="section">
|
||||
<ui:Foldout text="Mirror Mode" value="true" class="section-foldout">
|
||||
<uie:PropertyField binding-path="MirrorMode" label="Mirror Mode (좌우 반전)"/>
|
||||
</ui:Foldout>
|
||||
</ui:VisualElement>
|
||||
|
||||
|
||||
@ -999,9 +999,9 @@ public class OptitrackStreamingClient : MonoBehaviour
|
||||
return map;
|
||||
}
|
||||
|
||||
/// <summary>YZ 평면 기준 회전 미러: X, Z 성분 부호 반전.</summary>
|
||||
/// <summary>YZ 평면 기준 회전 미러 (R' = M·R·M, M=diag(-1,1,1)): Y, Z 성분 부호 반전.</summary>
|
||||
private static Quaternion MirrorOrientation( Quaternion q )
|
||||
=> new Quaternion( -q.x, q.y, -q.z, q.w );
|
||||
=> new Quaternion( q.x, -q.y, -q.z, q.w );
|
||||
|
||||
/// <summary>YZ 평면 기준 위치 미러: X 성분 부호 반전.</summary>
|
||||
private static Vector3 MirrorPosition( Vector3 pos )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user