繁体   English   中英

如何在虚幻引擎 5 中将旋转转换为 FVector?

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM