Re: [閒聊] 數學不好 我要漬鯊了

作者: NTUEE2CS (EE轉CS)   2022-11-01 17:52:10
這個如果是編版計算機圖學大佬吸肛一定會
可惜西肛他已經...
※ 引述《ZooseWu (動物園)》之銘言:
: 有個套件負責拿東西
: 它會計算手的角度跟物品的角度算出一個反轉值
: 讓物品拿起來的時候會在手上轉正
: handAttachmentPointTransform.rotation * initialRotationalOffset
: 但是我不想要這個功能
: 所以我要反向算出逆的選轉角
: 讓它拿起來的時候會保持物品當時的角度
: 但是我數學不好
: 不知道怎麼乘才能反向算回去
: 我這輩子就這樣了
: 已經試過的方法
: 1.
: Quaternion.Inverse(handAttachmentPointTransform.rotation) *
: Quaternion.Inverse(initialRotationalOffset)
: 2.
: handAttachmentPointTransform.rotation *
: Quaternion.Inverse(initialRotationalOffset)
: 3.
: Quaternion.Inverse(handAttachmentPointTransform.rotation) *
: initialRotationalOffset
: 4.
: handAttachmentPointTransform.rotation * initialRotationalOffset
: 5.
: initialRotationalOffset
: 6.
: handAttachmentPointTransform.rotation
: 7.
: Quaternion.Inverse(hand.hoverSphereTransform.localRotation) *
: transform.localRotation
: 8.
: HandOffsetRotation.rotation
: 9.
: hoverSphereTransform.position
: 10.
: Quaternion.Inverse(hand.hoverSphereTransform.localRotation)
: 11.
: Quaternion.Inverse(hoverSphereTransform.position)
: 還有一些雜七雜八的沒記下來
作者: a000000000 (九個零喔)   2021-10-11 07:37:00
那是假ee真cs刷題仔真ee很慘 不過沒人管

Links booklink

Contact Us: admin [ a t ] ucptt.com