Skip to content

乗り物の境界における押し戻し処理の改善#4

Merged
sysnote8main merged 1 commit into
crossline-1.21.11from
fix-vehicle-pushback
Dec 31, 2025
Merged

乗り物の境界における押し戻し処理の改善#4
sysnote8main merged 1 commit into
crossline-1.21.11from
fix-vehicle-pushback

Conversation

@turtton

@turtton turtton commented Dec 31, 2025

Copy link
Copy Markdown
Member

位置調整をメインとし、加速度は境界外側方向のみ殺すようにしました

Boats and other vehicles now move smoothly along the boundary without
significant slowdown. Changes:

- Add vehicle-specific clamping that preserves momentum along allowed axis
- Only zero velocity component moving away from boundary (not pushback)
- Skip knockedBack flag for vehicles to avoid physics interference
- Add shared clampEntityPosition() method in LockedAxisData
- Client-side also clamps vehicle position to prevent rubber-banding

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@turtton turtton requested a review from sysnote8main December 31, 2025 08:29

@sysnote8main sysnote8main left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sysnote8main sysnote8main merged commit f2f6d1a into crossline-1.21.11 Dec 31, 2025
1 check passed
@sysnote8main sysnote8main deleted the fix-vehicle-pushback branch December 31, 2025 09:01
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