HolographicWings / LethalSDK-Unity-Project

Unity Project using Lethal Company SDK
MIT License
43 stars 4 forks source link

Nav mesh issue with custom moons #69

Open tinytaurenn opened 5 months ago

tinytaurenn commented 5 months ago

Hey,

i did setup a new moon of my conception ( sketchfab free assets conception tho ) and the only issue i finally cannot fix is quite hard to debug, the navmesh of the moon.

every npc spawning on the moon seems to not be placed on a navmesh ( log spamming nav mesh agent not on a navmesh etc )

my way to bake this one was as much like of the template moon : baking the navmesh then cut and paste the navmesh file in my moon folder with a name matching the new planet

i cannot visualize ingame if there is a nevmesh on my moon, quite hard to debug

ty for ur help

HolographicWings commented 5 months ago

Hey,

i did setup a new moon of my conception ( sketchfab free assets conception tho ) and the only issue i finally cannot fix is quite hard to debug, the navmesh of the moon.

every npc spawning on the moon seems to not be placed on a navmesh ( log spamming nav mesh agent not on a navmesh etc )

my way to bake this one was as much like of the template moon : baking the navmesh then cut and paste the navmesh file in my moon folder with a name matching the new planet

i cannot visualize ingame if there is a nevmesh on my moon, quite hard to debug

ty for ur help

Do you visualize it though the prefab or directly on a scene ? You must drop your moon on the SceneBuilder scene to edit it with full gizmo and post processing visuals

tinytaurenn commented 5 months ago

hey thanks for the quick reply,

my prefab is edited on a duplicate of the scene builder scene ( i dont like to mess with examples ) and i can fully visualize the navmesh on the map, it still doesnt really work ingame

could you tell me your process for baking a navmesh in ur maps ?

HolographicWings commented 5 months ago

hey thanks for the quick reply,

my prefab is edited on a duplicate of the scene builder scene ( i dont like to mess with examples ) and i can fully visualize the navmesh on the map, it still doesnt really work ingame

could you tell me your process for baking a navmesh in ur maps ?

Simply click on bake, save the prefab, build the bundle The navmesh manager must be in the environment object, and the baked nav mesh only apply to it's children objects