Want to implement game mechanics based on projectile motion? Want enemy AI to use ranged weapons such as cannons, rocks or arrows to accurately hit targets? Want to have full control over jump motion of objects in games or animations without losing their physical properties? This toolkit has got you covered!🕹️ Playable HTML Demos📔 DocsProjectile Toolkit is a powerful yet easy-to-use physics library for targeting, prediction, and controlling projectile in games — from simple ballistic shots to advanced curved aerodynamics:🎯 Targeting and Data PredictionThis module focuses on solving ballistic problems for projectiles under gravity.Example use cases(Check out "Battle Pro Max" demo game, and "Cannon Simulation" demo.)📈 Trajectory Prediction and VisualizationProjectile Toolkit provides you components and prefabs to predict and render trajectories both before and during flight.We support both math-based prediction (check out "Battle Pro Max" demo game), and physics-engine-based prediction (check out "PEB Trajectory Predictor" and "Curve Shot" demos).🌀 Projectile AerodynamicsProjectile Toolkit provides you components and prefabs that enable you to physically add non-vertical forces to projectiles while preserving accurate targeting.Great for:Boomerangs, Leviathan Axe, etc. (creative weapons)Football / soccer shots (curve, bend)Golf shots (draw / fade)Simulating wind and air drag(Check out "Curve Shot" demo.)🎁 BonusesUseful game toolkits such as:★ Simple explosion system★ Top-down character controller (Character Movement Kit)🏆 Why You’ll Love It✅ Flexible and easy to useDesigned with a modular architecture, allowing you to pick and integrate only the parts you need, unlike monolithic assets that force you to adopt rigid structures and unnecessary features.✅ Fully physics-oriented: Ensures you get the most authentic results with every tool.✅ Super fast: Most algorithms don't even touch trigonometric functions.✅ Works in both 3D and 2D (works in 2D if only your game treats y as up axis)✅ Awesome examplesEach example involves multiple features or methods, demonstrating practical use cases seen in real-world game projects, great for both learning this toolkit and quick prototyping.✅ Full source code✅ Built for games and physics simulationsSuitable for FPS & TPS games, action games, strategy games, sports games, and a wide range of physics-driven gameplay and simulation scenarios.----------------Roadmap- Propulsion Toolkit (v3.2)- Custom gravity direction (v4.0)🎯 Targeting• Compute the launch velocity by any of the following:- angle- height- time- a (coefficient of the quadratic function)- speed• Compute the launch angles by: speed• Compute the max range by: elevation and speed🔮 Predict various projectile data- Projectile's position at a given time- Whole trajectory points- Test if a given velocity can let a projectile to hit a given target- Flight time📈 Trajectory Prediction and Visualization- Trajectory Predictor component (math based)- PEB Trajectory Predictor component (physics engine based)- Fully customizable line style- Two line styles provided: dash, slash🌀 Projectile Aerodynamics• Mimic pro-level curve shots in football, baseball, golf, etc.• Simulate wind and air drag• Implement creative weapons such as boomerangs
この物理ツールキットは、発射体の動きに関連する問題を解決するために必要なすべてです。
詳細
発射物の動きに基づいたゲームメカニクスを実装したいですか? 敵の AI が大砲、岩、矢などの遠距離武器を使用してターゲットを正確に攻撃できるようにしたいですか? ゲームやアニメーション内のオブジェクトの物理的特性を失うことなく、オブジェクトのジャンプ モーションを完全に制御したいと思いませんか? このツールキットですべてをカバーできます。
🎮 プレイ可能な WebGL デモ
📚 ドキュメント
Projectile Toolkit は、発射物の動きに関連する 2 つの重要な問題を解決する物理ツールキットです。それは、重力の影響を受ける剛体が指定されたターゲットに到達するためのターゲット アルゴリズムと、剛体の軌道を予測してレンダリングする軌道予測アルゴリズムです。
⚡ Projectile Toolkit は非常に使いやすく、既存のプロジェクトにすぐに統合できます。
🏆特徴:
- 柔軟で使いやすい、コア API は注意深く設計された静的メソッドであり、スクリプトから直接呼び出すことができます。
- 超高速、ほとんどのアルゴリズムは三角関数にさえ触れません
- 3D と 2D の両方で動作します (ゲームが y を上軸としてのみ扱う場合は 2D で動作します)
- すべてのビルド プラットフォームで動作します
- たくさんの感動的なデモ (現在 3 つのデモ シーンと 1 つのゲーム)。 このツールキットの学習と迅速なプロトタイピングの両方に最適です
- 完全なソースコード
- 詳細なドキュメント
🎁 ボーナス:
次のような便利なゲーム ツールキット:
★爆発システム
★シンプルなトップダウンキャラクターコントローラー(キャラクター移動)
技術的な詳細
------------------------
🎯 ターゲティングアルゴリズム:
指定されたターゲットに当たるように重力の影響を受けるリジッドボディを計算します。 使い方は非常に簡単で、開始点、終了点、および次のいずれかを指定するだけです。
次の方法で発射速度を計算します。
- 角度
- 身長
- 時間
- 二次関数の係数
- スピード
次の方法で打ち出し角度を計算します。
- スピード
(1.1 の新機能) 次の方法で最大範囲を計算します。
- 高度と速度
APIリファレンス
ユースケースの比較
☄️ 軌道予測:
- 特定の時点での発射体の位置を予測します
- 全体の軌道点を予測します
- (1.1 の新機能) 指定された速度で発射体が指定されたターゲットに当たるかどうかをテストします
- (1.1の新機能) 飛行時間を予測します
- 軌道予測器、軌道を予測してレンダリングするための使いやすいコンポーネント
- (2.0 の新機能) PEB 軌道予測器は、物理エンジンに基づいた新しい予測器であり、正確でパフォーマンスに優れ、バウンス、抗力、物理マテリアルなどをサポートし、動的障害物をサポートします。
• 完全にカスタマイズ可能な線のスタイル
• 2 つのテンプレート スタイルが提供されます: ダッシュ、スラッシュ
------------------------
今後の予定:
- カスタム重力方向をサポート
- 推進ライブラリ




