Foliage2Lua
How to use the Foliage2Lua tool in nanos world Forge
Foliage2Lua converts any foliage actor into a Lua table representation that can be used in nanos world.
How to Useβ
- Open Foliage2Lua from the Forge hub
- Select a foliage actor from the current level
- Click Generate Lua to output the Lua code
Example Outputβ
{
{
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)
}
}
}
}