Skip to content

feat: 最初の衝突までの軌道を予測する線を追加#11

Open
Rn86222 wants to merge 4 commits intomainfrom
feat/trajectory-pred
Open

feat: 最初の衝突までの軌道を予測する線を追加#11
Rn86222 wants to merge 4 commits intomainfrom
feat/trajectory-pred

Conversation

@Rn86222
Copy link
Copy Markdown
Contributor

@Rn86222 Rn86222 commented Apr 11, 2026

  • 現在の角度でショットしたときの最初の衝突までの軌道をドット列で描画
  • ショット時の力の加え方に誤りがあったので修正

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 11, 2026

Deploying billiards-game with  Cloudflare Pages  Cloudflare Pages

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

View logs

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

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