johnh
New vMember
Posts: 4
|
Post by johnh on Dec 22, 2017 15:14:59 GMT
Hi guys,
Topdown camera is keep shaking. I set up every collider properly. Help me. I am just a beginner.
|
|
|
Post by uberwiggett on Dec 23, 2017 1:29:50 GMT
On the camera script you need to switch the culling to nothing. The default is causing it to collide with the player model and making it constantly zoom in and out rapidly
|
|
johnh
New vMember
Posts: 4
|
Post by johnh on Dec 23, 2017 11:21:33 GMT
Hey. Thank you for your answer. I tried that way but in my case, my problem is Nav Mesh Agent I guess. because whener i add Nav Mesh Agent to player, it start shaking up and down randomly (No matter camera script culling is default or nothing ). If I remove NavMeshAgent, everything is fine. So, is there any idea to solve it? I need to add NavmeshAgent to player anyway. Please, help me. Thank you again.
|
|
|
Post by uberwiggett on Dec 23, 2017 12:42:40 GMT
Not sure why it didn't help, I just tried the demo scene for top down, added a nav mesh agent (not sure why you need this on the player but i guess you have a reason?) and there was no problem (except my character was constantly in the fall animation). Are you sure you put the culling field to nothing? image attached for reference. images uplodthe only time i've had that camera flicker like that is because a raycast was colliding with a layer, so I am assuming perhaps the navmeshagent script is putting on a default layer collider onto your player controller, and your camera is reading the default layer and trying to position in front of it (culling check) but then also trying to place itself back into the top down position.
|
|
johnh
New vMember
Posts: 4
|
Post by johnh on Dec 23, 2017 13:11:03 GMT
Hey thank you again. I am sure tried with culling method as you mention. Unfortunately, error is NavMeshAgent in my case. After spending hours of searching on internet, i found some clues. Do you know how to disable Navmeshagent position? because in some forum, I found same issues like me and they say just set Update.NavmeshAgentposition to false. But I don't know how to set it. I am noob beginner. :( :(
|
|
|
Post by uberwiggett on Dec 23, 2017 13:23:44 GMT
Hmm no i'm not too sure how to do that, you'd need to look at what script you are using the navmesh agent for, as it's not normally something that the player controller uses.
|
|
|
Post by tharindu on Dec 23, 2017 14:01:33 GMT
Hey thank you again. I am sure tried with culling method as you mention. Unfortunately, error is NavMeshAgent in my case. After spending hours of searching on internet, i found some clues. Do you know how to disable Navmeshagent position? because in some forum, I found same issues like me and they say just set Update.NavmeshAgentposition to false. But I don't know how to set it. I am noob beginner. :( :( why not try a new project and check if the settings help if you haven't made great progress with your current one?
|
|