Skip to content

Locomotor: Use explicit turning physics via rotateTowardsPosition for angle-based movement - #171

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/locomotor-explicit-turning
Open

Locomotor: Use explicit turning physics via rotateTowardsPosition for angle-based movement#171
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/locomotor-explicit-turning

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-15V. The issue was that: Infantry movement functions recursively call each other when minSpeed > 0, creating an infinite loop that exhausts the stack.

  • Replaced calls to locoUpdate_moveTowardsAngle with explicit turning logic in Locomotor.cpp.
  • Calculates a desired position far along the desired angle.
  • Uses rotateTowardsPosition to determine the necessary PhysicsTurningType.
  • Sets the turning physics using physics->setTurning.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 7960901

Not quite right? Click here to continue debugging with Seer.

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

Successfully merging this pull request may close these issues.

0 participants