Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

角度计算错误导致角色移动动画的BlendSpace没有成功应用 #725

Open
sijin1992 opened this issue Sep 21, 2024 · 0 comments
Open

Comments

@sijin1992
Copy link

ABP_PlayerCharacter_C.lua中
local Angle = UE.UKismetMathLibrary.Acos(DP1)
得到的是弧度。
所以还需要转成角度:

local Radian = UE.UKismetMathLibrary.Acos(DP1)
local Pi = UE.UKismetMathLibrary.GetPI()
local Angle = Radian * (180/Pi)

或者

local Radian = UE.UKismetMathLibrary.Acos(DP1)
local Angle = UE.UKismetMathLibrary.RadiansToDegrees(Radian)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant