Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts #4

Open
byelik opened this issue Jul 2, 2019 · 7 comments
Open

Scripts #4

byelik opened this issue Jul 2, 2019 · 7 comments

Comments

@byelik
Copy link

byelik commented Jul 2, 2019

Hi, thanks for you tutorials. I've downloaded the source code, but there are not all scripts in the repo. Is it possible to get all needed scripts for these tutorials?
Thanks in advance!

@sqr1be
Copy link

sqr1be commented Feb 25, 2020

yeah, not helpful. The playercontroller script i copied verbatim from the youtube video, and my little agent doesn't do any movement really. if i click on the agent it'self it seems to move a little. like, micro units.

@MTF-TAU-5
Copy link

Did you do it in game mode?

@shrivaths16
Copy link

Adding the box collider to the ground is actually necessary and not optional. We need a collider to detect the mouse clicks.
Clicking on the player moves it because it has a capsule collider on it.

@arch-kobra1985
Copy link

"SetDestination" can only be called on an active agent that has been placed on a NavMesh.
UnityEngine.AI.NavMeshAgent:SetDestination (UnityEngine.Vector3)
playercontroler:Update () (at Assets/playercontroler.cs:21)

is what it said for me when I added a box solider to the ground

@arch-kobra1985
Copy link

Screen Shot 2021-07-16 at 8 25 21 PM

@arch-kobra1985
Copy link

I was in play mode when it happened

@jeddles88
Copy link

theres a few issues in these examples
example one needs a box collider to work

example 3 needs more code in start on player controller so that when the player spawns it has a meshagent and a camera.
void Start()
{
agent = gameObject.GetComponent();
cam = Camera.main;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants