shadmar Posted October 22, 2015 Share Posted October 22, 2015 Run this from a pivot in an empty map: If you change ViewRange to 0,1,2 or 3 it works. But 4, skips the nav entirely. function Script:Start() ground=Model:Box() shape=Shape:Box(0,0,0, 0,0,0, 1,1,1) ground:SetShape(shape) ground:SetScale(40,1,40) ground:SetNavigationMode(true) player=Prefab:Load("Prefabs/Player/FPSPlayer.pfb") for n=0,10 do local b=Model:Box() b:SetShape(shape) b:SetPosition(n,1,n) b:SetScale(n,1,1) b:SetViewRange(4) -- this kill navigation b:SetOcclusionCullingMode(false) b:Turn(0,Math:Random(-15,15),0) b:SetNavigationMode(true) end shape:Release() self.world=World:GetCurrent() self.world:BuildNavMesh() camera=player.script.camera camera:SetDebugNavigationMode(true) end Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.