AI third person controller enemy legs not moving but character is and waypoints moving with enemy. Unity3d
I am new to Unity and C#. The problem that I have is that my AI third person controller enemy's legs are not moving, even though the character itself is moving. The enemy is moving to the first waypoint and then will not turn around to go to the other waypoint. I had this working perfectly before but I accidentally overwrote the prefab I had set to the enemy. The navmeshagent is set to the enemy and the box collider is not on the ground, but it is covering the enemy. I have the navmeshagent at the default settings as well. The code is unaltered from before I killed my enemy the first time. So it has to be something in the developer. Also the waypoint spheres are in an empty gameObject.
breakpoints are inserted in the highlighted areas
c# unity3d
add a comment |
I am new to Unity and C#. The problem that I have is that my AI third person controller enemy's legs are not moving, even though the character itself is moving. The enemy is moving to the first waypoint and then will not turn around to go to the other waypoint. I had this working perfectly before but I accidentally overwrote the prefab I had set to the enemy. The navmeshagent is set to the enemy and the box collider is not on the ground, but it is covering the enemy. I have the navmeshagent at the default settings as well. The code is unaltered from before I killed my enemy the first time. So it has to be something in the developer. Also the waypoint spheres are in an empty gameObject.
breakpoints are inserted in the highlighted areas
c# unity3d
Perhaps add the code you're using? It helps to understand the context of the question.
– benhorgen
Nov 21 '18 at 17:48
Just edited the post to fit the code (all of it is in images).
– Raahul Pathak
Nov 21 '18 at 18:19
@RaahulPathak It would be more useful to copy and paste your code in a formatted fashion instead of linking code in pictures. Links disappear over time.
– Eliasar
Nov 21 '18 at 19:52
1
@Eliasar, The reason I linked my code through images this time is that I don't know where/or if I messed up. I posted it through images since it is about 100 or so lines of code. But thank you for the comment. I will start doing that in the future.
– Raahul Pathak
Nov 22 '18 at 22:01
@RaahulPathak if you are interested in answers here you should start doing it right ahead and not wait until the future ;)
– derHugo
Nov 26 '18 at 20:46
add a comment |
I am new to Unity and C#. The problem that I have is that my AI third person controller enemy's legs are not moving, even though the character itself is moving. The enemy is moving to the first waypoint and then will not turn around to go to the other waypoint. I had this working perfectly before but I accidentally overwrote the prefab I had set to the enemy. The navmeshagent is set to the enemy and the box collider is not on the ground, but it is covering the enemy. I have the navmeshagent at the default settings as well. The code is unaltered from before I killed my enemy the first time. So it has to be something in the developer. Also the waypoint spheres are in an empty gameObject.
breakpoints are inserted in the highlighted areas
c# unity3d
I am new to Unity and C#. The problem that I have is that my AI third person controller enemy's legs are not moving, even though the character itself is moving. The enemy is moving to the first waypoint and then will not turn around to go to the other waypoint. I had this working perfectly before but I accidentally overwrote the prefab I had set to the enemy. The navmeshagent is set to the enemy and the box collider is not on the ground, but it is covering the enemy. I have the navmeshagent at the default settings as well. The code is unaltered from before I killed my enemy the first time. So it has to be something in the developer. Also the waypoint spheres are in an empty gameObject.
breakpoints are inserted in the highlighted areas
c# unity3d
c# unity3d
edited Nov 26 '18 at 20:46
derHugo
4,56421028
4,56421028
asked Nov 21 '18 at 16:00
Raahul PathakRaahul Pathak
11
11
Perhaps add the code you're using? It helps to understand the context of the question.
– benhorgen
Nov 21 '18 at 17:48
Just edited the post to fit the code (all of it is in images).
– Raahul Pathak
Nov 21 '18 at 18:19
@RaahulPathak It would be more useful to copy and paste your code in a formatted fashion instead of linking code in pictures. Links disappear over time.
– Eliasar
Nov 21 '18 at 19:52
1
@Eliasar, The reason I linked my code through images this time is that I don't know where/or if I messed up. I posted it through images since it is about 100 or so lines of code. But thank you for the comment. I will start doing that in the future.
– Raahul Pathak
Nov 22 '18 at 22:01
@RaahulPathak if you are interested in answers here you should start doing it right ahead and not wait until the future ;)
– derHugo
Nov 26 '18 at 20:46
add a comment |
Perhaps add the code you're using? It helps to understand the context of the question.
– benhorgen
Nov 21 '18 at 17:48
Just edited the post to fit the code (all of it is in images).
– Raahul Pathak
Nov 21 '18 at 18:19
@RaahulPathak It would be more useful to copy and paste your code in a formatted fashion instead of linking code in pictures. Links disappear over time.
– Eliasar
Nov 21 '18 at 19:52
1
@Eliasar, The reason I linked my code through images this time is that I don't know where/or if I messed up. I posted it through images since it is about 100 or so lines of code. But thank you for the comment. I will start doing that in the future.
– Raahul Pathak
Nov 22 '18 at 22:01
@RaahulPathak if you are interested in answers here you should start doing it right ahead and not wait until the future ;)
– derHugo
Nov 26 '18 at 20:46
Perhaps add the code you're using? It helps to understand the context of the question.
– benhorgen
Nov 21 '18 at 17:48
Perhaps add the code you're using? It helps to understand the context of the question.
– benhorgen
Nov 21 '18 at 17:48
Just edited the post to fit the code (all of it is in images).
– Raahul Pathak
Nov 21 '18 at 18:19
Just edited the post to fit the code (all of it is in images).
– Raahul Pathak
Nov 21 '18 at 18:19
@RaahulPathak It would be more useful to copy and paste your code in a formatted fashion instead of linking code in pictures. Links disappear over time.
– Eliasar
Nov 21 '18 at 19:52
@RaahulPathak It would be more useful to copy and paste your code in a formatted fashion instead of linking code in pictures. Links disappear over time.
– Eliasar
Nov 21 '18 at 19:52
1
1
@Eliasar, The reason I linked my code through images this time is that I don't know where/or if I messed up. I posted it through images since it is about 100 or so lines of code. But thank you for the comment. I will start doing that in the future.
– Raahul Pathak
Nov 22 '18 at 22:01
@Eliasar, The reason I linked my code through images this time is that I don't know where/or if I messed up. I posted it through images since it is about 100 or so lines of code. But thank you for the comment. I will start doing that in the future.
– Raahul Pathak
Nov 22 '18 at 22:01
@RaahulPathak if you are interested in answers here you should start doing it right ahead and not wait until the future ;)
– derHugo
Nov 26 '18 at 20:46
@RaahulPathak if you are interested in answers here you should start doing it right ahead and not wait until the future ;)
– derHugo
Nov 26 '18 at 20:46
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53415983%2fai-third-person-controller-enemy-legs-not-moving-but-character-is-and-waypoints%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53415983%2fai-third-person-controller-enemy-legs-not-moving-but-character-is-and-waypoints%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Perhaps add the code you're using? It helps to understand the context of the question.
– benhorgen
Nov 21 '18 at 17:48
Just edited the post to fit the code (all of it is in images).
– Raahul Pathak
Nov 21 '18 at 18:19
@RaahulPathak It would be more useful to copy and paste your code in a formatted fashion instead of linking code in pictures. Links disappear over time.
– Eliasar
Nov 21 '18 at 19:52
1
@Eliasar, The reason I linked my code through images this time is that I don't know where/or if I messed up. I posted it through images since it is about 100 or so lines of code. But thank you for the comment. I will start doing that in the future.
– Raahul Pathak
Nov 22 '18 at 22:01
@RaahulPathak if you are interested in answers here you should start doing it right ahead and not wait until the future ;)
– derHugo
Nov 26 '18 at 20:46