小编Jac*_*ias的帖子

Gridmap Node set_cell_item() 平铺对象的旋转

我正在 Godot 中使用 gridmap 3D 开发程序地图,

set_cell_item(x: int, y: int, z: int, item: int, orientation: int = 0)
Run Code Online (Sandbox Code Playgroud)

在最后一个属性上,我可以设置对象的方向...但看起来范围从 -1 到 1...所以,只有 3 个选项?

使用 then 使我的图块在 Z 轴上旋转,我希望它在 y 轴上旋转。文档指出我

get_orthogonal_index()

但我不明白如何使用它

rotation godot

2
推荐指数
1
解决办法
1186
查看次数

标签 统计

godot ×1

rotation ×1