[英]How to transform Rotation to FVector in Unreal Engine 5?
如何将MainComponent->GetComponentRotation()
为FVector
? 我必须为子组件使用AddForce()
吗? 我需要获取它的旋转向量,如何正确获取?
复制粘贴乔治的评论,您应该可以使用:
MainComponent->GetComponentRotation().Vector();
MainComponent->GetComponentForwardVector();
有关更多详细信息,请参阅文档 - GetComponentRotation()和GetComponentForwardVector() 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.