AI_LookAtNpc is rotating head awkwardly for Troll

Open
#351 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, unity
Domain
game-dev

Research direction

Start with GUZ.Core.Domain.Npc.Actions.AnimationActions.LookAtNpc.Start() and follow the behavior into GUZ.Core.Animations.NpcHeadAnimationHandler.LateUpdate(). The report identifies two problems: look-at behavior may continue while a monster turns toward the player, and some monsters such as the troll rotate incorrectly. Reproduce both cases in game and consider the issue resolved when the behavior stops appropriately and the troll’s head rotation looks correct.

Written by the indexing model from the issue text.

Description

bug
Description

GUZ.Core.Domain.Npc.Actions.AnimationActions.LookAtNpc.Start() --> GUZ.Core.Animations.NpcHeadAnimationHandler.LateUpdate() has two issues:

  1. It seems, that we don't stop the look at, even when a monster is already rotating towards us --> Maybe it's a normal AnimationAction which should always stop when returning "true" for stopping?
  2. The rotation is wrong for some monsters. Look at this troll:
Image
Dominant language
C#
Stars
33
Forks
1
Avg merge
1d 17h
Merged PRs (30d)
51

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Gothic-Unity-Project/Gothic-Unity

All issues in Gothic-Unity-Project/Gothic-Unity

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.