Skip to content
Snippets Groups Projects

Smooth movement

Merged Petr Mikheev requested to merge ptmikheev/openmw:smooth_movement into master

Makes NPCs and player movement smoother. Resolves #5610 (closed) and #4894 (closed).

Motivation: for some people jerky movement causes motion sickness. This change makes the movement and turning not so sharp.

To enable add to settings.cfg:

[Game]
smooth movement = true
NPCs avoid collisions = true
turn to movement direction = true  # recommended because NPCs will use diagonal movement

Changes:

  1. NPCs move and turn much more smoothly.
  2. NPCs avoid collisions when move (resolves #4894 (closed)).
  3. Standing NPCs give way for moving ones if they are not busy with something important (Have you ever been blocked in a narrow passage by your own follower? It shouldn't be a problem any more). Can be disabled by setting NPCs give way to false in [Game] section of settings.cfg.
  4. Turning in combat is slower and not jerky now. NPCs do a side step if someone tries to go around, so backstabbing is not easier than before.
  5. Head tracking works in combat.
  6. Transition from standing to moving is not instant both for NPCs and for player.
  7. Player turning is also not instant. Try turn very fast while running and you will see the effect of "turn to movement direction".

Examples

NPCs movement

Combat, single enemy

Combat, many enemies

Avoiding collisions

Looking forward for feedback.

Edited by Petr Mikheev

Merge request reports

Pipeline #193213494 passed

Pipeline passed for a17fb14b on ptmikheev:smooth_movement

Approval is optional

Merged by elsidelsid 4 years ago (Sep 26, 2020 10:12pm UTC)

Loading

Pipeline #194915596 passed

Pipeline passed for 61cf505f on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading