Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Godot 的新手,我正在尝试制作 3d 游戏,但我不知道如何旋转我的玩家(谁是KinematicBody)。有人可以告诉我该怎么做吗?我尝试了很多不同的方法,但我做不到。
尝试使用:
rotate_x(float angle) #angle is in radians rotate_y(float angle) rotate_z(float angle)
如果您想使用度数而不是弧度,那么只需使用:
rotate_x(deg2rad(float deg)) #deg is degrees