Foliage2Lua
如何在 nanos world Forge 中使用 Foliage2Lua 工具
Foliage2Lua 可以将任何植被 Actor 转换为可在 nanos world 中使用的 Lua 表表达式。
如何使用
- 从 Forge 中心打开 Foliage2Lua
- 从当前关卡中选择一个植被 Actor
- 单击 Generate Lua 以输出 Lua 代码
示例输出
{
{
StaticMesh = "my-asset-pack::grass_mesh",
Instances = {
{
Location = Vector(-633.461, -203.525, 0),
Rotation = Rotator(0, -135.905, 0),
Scale = Vector(1, 1, 1)
},
{
Location = Vector(-620.477, -146.511, 0),
Rotation = Rotator(0, -25.335, 0),
Scale = Vector(1, 1, 1)
},
{
Location = Vector(-776.156, -87.353, 0),
Rotation = Rotator(0, 174.556, 0),
Scale = Vector(1, 1, 1)
},
{
Location = Vector(-639.976, -58.097, 0),
Rotation = Rotator(0, -11.997, 0),
Scale = Vector(1, 1, 1)
},
{
Location = Vector(-693.939, -291.958, 0),
Rotation = Rotator(0, -51.374, 0),
Scale = Vector(1, 1, 1)
}
}
}
}