fix: 家具交互修正 - #26
Merged
Merged
Conversation
- 宠物撞上家具后自动触发交互动画(优先复用手动 F 键同一套绑定,兜底 _placedFurniture) - 交互播放到绑定固定交互点,不再在卡住的原地播动画 - 自动交互缩放与手动触发一致:尊重绑定的 UsePetPoseOverride,门边/书柜保持当前缩放 (修复自动触发把宠物缩到 1.0、手动保持 0.5 的大小差异) - 动画状态按宠物映射:恶魔映射到 Interact_PlayGame/Draw/LookAround,避免播放天使专属状态报警 - 移动动画方向去抖(新增 PetAnimatorDirectionDebouncer + EditMode 测试),避免撞家具后 Move_Front/Back/Side 因物理滑动抖动而乱切换
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
桌宠在漫游时撞上家具后只会原地卡住走路,需要玩家手动 F 键/点击家具才会交互。本次实现桌宠自动与附近家具交互。
改动内容(仅桌宠交互相关,不涉及 UI/场景/字体)
自动交互触发 (PetController.cs / PetPlayerFurnitureInteractionController.cs)
位置固定
大小与手动一致(本次关键修复)
动画状态按宠物映射
动画方向去抖 (新增 PetAnimatorDirectionDebouncer + EditMode 测试)
测试