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

fix(character_movement): Fix sleeping kinematic / has_moved optimization causing AI to sink into ground #883

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

MaxCWhitehead
Copy link
Collaborator

@MaxCWhitehead MaxCWhitehead commented Dec 19, 2023

I seem to have set the update of saved positions used to determine if kinematic has moved in the wrong spot, ended up in a situation in which AI thinks it had not moved, but was inching down by -0.1 each frame, sinking into ground.

I was able to repro fairly consistently and feeling pretty confident this should fix the AI sinking into ground described in #882. (Though I do not believe this is related to the losing control of player bit).

EDIT: #853 (objects stuck in walls) also appears to be resolved by this fix.

@zicklag zicklag added this pull request to the merge queue Dec 19, 2023
@zicklag
Copy link
Member

zicklag commented Dec 19, 2023

Awesome, thanks!

Merged via the queue into fishfolk:main with commit cc6ef36 Dec 19, 2023
9 of 10 checks passed
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.

2 participants