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!
Projectile Toolkit is a physics toolkit that solves two key problems related to projectile motion: targeting algorithms for gravity-affected rigidbodies to hit the specified target, and trajectory prediction algorithms that predict and render the trajectory of a rigidbody.
Projectile Toolkit is extremly easy to use, and can be quickly integrated into existing projects.
Features:
- Flexible and Easy to Use, the core API is carefully-designed static methods, can be called directly from your scripts
- 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
- Plenty of inspirational demos (currently 3 demo scenes and 1 game). Great for both learning this toolkit and quick prototyping
- Full source code
- Detailed documentation
Bonuses:
Useful game toolkits such as:
★ explosion system
★ simple top-down character controller (character movement)
Technical details
Targeting algorithms:
Computation of a gravity-affected rigidbody to hit the specified target. Extremely easy to use, you just specify start point, end point, and one of the following:
Computes the launch Velocity by:
- Angle
- Height
- Time
- a coefficient of the quadratic function
- Speed
Computes the launch angle by:
- Speed
(NEW in 1.1) Computes the max range by:
- Elevation and Speed
想要实现基于弹射运动的游戏机制?想让敌人的人工智能使用大炮、石块或箭矢等远程武器准确击中目标?想完全控制游戏或动画中物体的跳跃运动而不丢失其物理属性?本工具包可满足您的需求!
Projectile Toolkit 是一款物理工具包,可解决与弹射运动相关的两个关键问题:受重力影响的刚体击中指定目标的瞄准算法,以及预测和渲染刚体轨迹的轨迹预测算法。
Projectile Toolkit 非常易于使用,可快速集成到现有项目中。
特点
- 灵活易用,核心 API 是精心设计的静态方法,可直接从脚本中调用
- 速度超快,大多数算法甚至不接触三角函数
- 可在 3D 和 2D 环境中运行(如果您的游戏仅将 y 轴视为向上轴,则可在 2D 环境中运行)
- 适用于所有构建平台
- 大量启发性演示(目前有 3 个演示场景和 1 个游戏)。非常适合学习该工具包和快速制作原型
- 完整的源代码
- 详细文档
奖励:
实用的游戏工具包,如
爆炸系统
简单的自上而下角色控制器(角色移动)
技术细节
瞄准算法:
计算受重力影响的刚体以击中指定目标。使用极为简单,只需指定起点、终点和以下参数之一即可:
计算
|