Open
Conversation
Contributor
Rn86222
commented
Apr 11, 2026
- 現在の角度でショットしたときの最初の衝突までの軌道をドット列で描画
- ショット時の力の加え方に誤りがあったので修正
Deploying billiards-game with
|
| Latest commit: |
ad498b8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://dd2d4295.billiards-game.pages.dev |
| Branch Preview URL: | https://feat-trajectory-pred.billiards-game.pages.dev |
There was a problem hiding this comment.
Pull request overview
ショット前に「現在の角度で打った場合の最初の衝突点まで」の予測軌道をドット列で可視化し、あわせてショット時の力の加え方を修正するPRです(ゲームシーンの操作フィードバック改善)。
Changes:
- レイキャスト+ボール位置参照で、最初の衝突点までの軌道ドット表示を追加
- PowerGauge のデフォルト最大パワーを引き上げ
- ボールへのインパルス適用点を修正(中心に適用)
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/gamescene/index.tsx | 予測軌道コンポーネントをゲームシーンに組み込み、表示条件と対象ボールIDを連携 |
| src/gamescene/components/TrajectoryLineRaycast.tsx | 最初の衝突までの軌道ドット描画(壁はRaycaster、ボールは2D円交差で判定)を新規追加 |
| src/gamescene/components/PowerGauge.tsx | デフォルトの最大ショットパワーを調整 |
| src/gamescene/components/Ball.tsx | インパルス適用点の修正によりショット挙動を改善 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.