Closed monguri closed 4 years ago
FAnimNode_KawaiiPhysics::EvaluateSkeletalControl_AnyThread()の以下のコードについて指摘させてください。
if (SkelCompMoveRotation.GetAngle() > TeleportRotationThreshold * TeleportRotationThreshold) { SkelCompMoveRotation = FQuat::Identity; }
角度の比較なので、TeleportRotationThresholdは2乗する必要がないように思いましたがいかがでしょうか。 また、GetAngle()はラジアン単位で返しますので、TeleportRotationThreshold は度で設定すると思いますので、単位の変換が必要なのではないかと思いました。 今まではラジアンなので小さな値が返っていてこの分岐内に入ることがほとんどなかったのでないかと推測しています。
ご指摘ありがとうございます!以下のコミットで修正しました! https://github.com/pafuhana1213/KawaiiPhysics/commit/40b99cfcf81400d84641afde4e0017d93ef35f75
ありがとうございます!
FAnimNode_KawaiiPhysics::EvaluateSkeletalControl_AnyThread()の以下のコードについて指摘させてください。
角度の比較なので、TeleportRotationThresholdは2乗する必要がないように思いましたがいかがでしょうか。 また、GetAngle()はラジアン単位で返しますので、TeleportRotationThreshold は度で設定すると思いますので、単位の変換が必要なのではないかと思いました。 今まではラジアンなので小さな値が返っていてこの分岐内に入ることがほとんどなかったのでないかと推測しています。