简体   繁体   English

UE4 C++ 旋转速度

[英]UE4 C++ Rotation Speed

I want to make a solar system model in Unreal Engine 4. I am a complete novice and this will be my second ever project.我想在虚幻引擎 4 中制作一个太阳系模型。我是一个完整的新手,这将是我的第二个项目。 I was wandering how I could set the rotation path of a 'planet' and change its speed.我在徘徊如何设置“行星”的旋转路径并改变其速度。 For example the rotation of Jupiter around the sun would be slower than the roation speed of Earth around the sun.例如,木星绕太阳的自转速度会比地球绕太阳的自转速度慢。

Thank you谢谢

You could model your planets with them on a root a certain distance away from the sun, then make a timeline that has a track from 0-360 degrees over a set amount of time (revolution time for example).你可以用它们在离太阳一定距离的根上对你的行星进行建模,然后制作一个时间轴,在一定的时间内(例如公转时间)有 0-360 度的轨迹。

Parent your planets to the sun,then set relative Rotation of your planets root with the float value that your timeline returns.将您的行星以太阳为父,然后使用时间轴返回的浮点值设置行星根的相对旋转。

Hope this helped.希望这有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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