
Projectile Toolkit gives you all-in-one power to tackle projectile motion challenges — Targeting, Prediction, and Aerodynamics made easy.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!🎮 WebGL Demos📚 DocsProjectile Toolkit currently provides templates and tools related to 3 key topics:TargetingLet gravity-affected rigidbodies to hit the specified targetPredictionCompute various projectile info; Predict and render the trajectory of a rigidbodyProjectile AerodynamicsHandle curved trajectories seen in boomerang, football, golf (draw/fade), etc. (and still hit the specified target)Projectile Toolkit is extremly easy to use, and can be quickly integrated into existing projects.🏆 Features:- Flexible and easy to use: the low-level APIs are carefully-designed static methods; the high-level features are carefully designed to be used with no code or with simple code- 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)- Works on all build platforms- Inspirational demos: great for both learning this toolkit and quick prototyping- Full source code- Detailed documentation🎁 Bonuses:Useful game toolkits such as:★ Explosion system★ Top-down character controller-------------------------Technical details🎯 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, speedAPI Example Use Cases☄️ Prediction• Predict various projectile info (API libarary):- 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• Predict and render trajectory lines:- Trajectory Predictor (math based)- PEB Trajectory Predictor (physics engine based)- Fully customizable line style- Two template styles provided: dash, slash- Compare the 3 Systems of Trajectory Prediction⚽ Projectile Aerodynamics• Mimic pro-level curve shots in football, baseball, golf, etc.• Simulate wind and air drag• Implement creative weapons such as boomerangsRoadmap- Propulsion library (v3.2)- Custom gravity direction (v4.0)
この物理ツールキットは、発射体の動きに関連する問題を解決するために必要なすべてです。
詳細
発射物の動きに基づいたゲームメカニクスを実装したいですか? 敵の 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 つのテンプレート スタイルが提供されます: ダッシュ、スラッシュ
------------------------
今後の予定:
- カスタム重力方向をサポート
- 推進ライブラリ